Add func doc.

This commit is contained in:
Vladimir Mihailenco 2016-12-16 14:19:53 +02:00
parent 152cc1ee34
commit 4ba635e15f
2 changed files with 2 additions and 0 deletions

View File

@ -759,6 +759,7 @@ func (c *ClusterClient) checkMovedErr(cmd Cmder, failedCmds map[*clusterNode][]C
return nil return nil
} }
// TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.
func (c *ClusterClient) TxPipeline() *Pipeline { func (c *ClusterClient) TxPipeline() *Pipeline {
pipe := Pipeline{ pipe := Pipeline{
exec: c.txPipelineExec, exec: c.txPipelineExec,

View File

@ -337,6 +337,7 @@ func (c *Client) TxPipelined(fn func(*Pipeline) error) ([]Cmder, error) {
return c.TxPipeline().pipelined(fn) return c.TxPipeline().pipelined(fn)
} }
// TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.
func (c *Client) TxPipeline() *Pipeline { func (c *Client) TxPipeline() *Pipeline {
pipe := Pipeline{ pipe := Pipeline{
exec: c.pipelineExecer(c.txPipelineProcessCmds), exec: c.pipelineExecer(c.txPipelineProcessCmds),