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

Add TxPipeline to Cmdable

This commit is contained in:
Vladimir Mihailenco
2017-09-25 11:48:44 +03:00
parent 975882d73d
commit f9307ab2fe
7 changed files with 40 additions and 12 deletions

View File

@ -361,7 +361,7 @@ func (c *Client) PoolStats() *PoolStats {
}
func (c *Client) Pipelined(fn func(Pipeliner) error) ([]Cmder, error) {
return c.Pipeline().pipelined(fn)
return c.Pipeline().Pipelined(fn)
}
func (c *Client) Pipeline() Pipeliner {
@ -373,7 +373,7 @@ func (c *Client) Pipeline() Pipeliner {
}
func (c *Client) TxPipelined(fn func(Pipeliner) error) ([]Cmder, error) {
return c.TxPipeline().pipelined(fn)
return c.TxPipeline().Pipelined(fn)
}
// TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.
@ -425,7 +425,7 @@ type Conn struct {
}
func (c *Conn) Pipelined(fn func(Pipeliner) error) ([]Cmder, error) {
return c.Pipeline().pipelined(fn)
return c.Pipeline().Pipelined(fn)
}
func (c *Conn) Pipeline() Pipeliner {
@ -437,7 +437,7 @@ func (c *Conn) Pipeline() Pipeliner {
}
func (c *Conn) TxPipelined(fn func(Pipeliner) error) ([]Cmder, error) {
return c.TxPipeline().pipelined(fn)
return c.TxPipeline().Pipelined(fn)
}
// TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.