forked from mirror/redis
Add func doc.
This commit is contained in:
parent
152cc1ee34
commit
4ba635e15f
|
@ -759,6 +759,7 @@ func (c *ClusterClient) checkMovedErr(cmd Cmder, failedCmds map[*clusterNode][]C
|
|||
return nil
|
||||
}
|
||||
|
||||
// TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.
|
||||
func (c *ClusterClient) TxPipeline() *Pipeline {
|
||||
pipe := Pipeline{
|
||||
exec: c.txPipelineExec,
|
||||
|
|
1
redis.go
1
redis.go
|
@ -337,6 +337,7 @@ func (c *Client) TxPipelined(fn func(*Pipeline) error) ([]Cmder, error) {
|
|||
return c.TxPipeline().pipelined(fn)
|
||||
}
|
||||
|
||||
// TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.
|
||||
func (c *Client) TxPipeline() *Pipeline {
|
||||
pipe := Pipeline{
|
||||
exec: c.pipelineExecer(c.txPipelineProcessCmds),
|
||||
|
|
Loading…
Reference in New Issue