1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

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

@ -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),