77
88type pipelineExecer func (context.Context , []Cmder ) error
99
10- // Pipeliner is an mechanism to realise Redis Pipeline technique.
10+ // Pipeliner is a mechanism to realise Redis Pipeline technique.
1111//
1212// Pipelining is a technique to extremely speed up processing by packing
1313// operations to batches, send them at once to Redis and read a replies in a
@@ -23,20 +23,20 @@ type pipelineExecer func(context.Context, []Cmder) error
2323type Pipeliner interface {
2424 StatefulCmdable
2525
26- // Len is to obtain the number of commands in the pipeline that have not yet been executed.
26+ // Len obtains the number of commands in the pipeline that have not yet been executed.
2727 Len () int
2828
2929 // Do is an API for executing any command.
3030 // If a certain Redis command is not yet supported, you can use Do to execute it.
3131 Do (ctx context.Context , args ... interface {}) * Cmd
3232
33- // Process is to put the commands to be executed into the pipeline buffer.
33+ // Process puts the commands to be executed into the pipeline buffer.
3434 Process (ctx context.Context , cmd Cmder ) error
3535
36- // Discard is to discard all commands in the cache that have not yet been executed.
36+ // Discard discards all commands in the pipeline buffer that have not yet been executed.
3737 Discard ()
3838
39- // Exec is to send all the commands buffered in the pipeline to the redis- server.
39+ // Exec sends all the commands buffered in the pipeline to the redis server.
4040 Exec (ctx context.Context ) ([]Cmder , error )
4141
4242 // Cmds returns the list of queued commands.
0 commit comments