From 4ba635e15f06c5b2e02114cb7ed0e9783cfbd753 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Fri, 16 Dec 2016 14:19:53 +0200 Subject: [PATCH] Add func doc. --- cluster.go | 1 + redis.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cluster.go b/cluster.go index 5a8d25c..23d091b 100644 --- a/cluster.go +++ b/cluster.go @@ -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, diff --git a/redis.go b/redis.go index 4dfdfbd..6a3b04c 100644 --- a/redis.go +++ b/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),