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:
@ -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,
|
||||||
|
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)
|
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),
|
||||||
|
Reference in New Issue
Block a user