mirror of
https://github.com/redis/go-redis.git
synced 2025-12-03 18:31:14 +03:00
wip
This commit is contained in:
8
redis.go
8
redis.go
@@ -1175,11 +1175,11 @@ func (c *Client) Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmd
|
||||
}
|
||||
|
||||
func (c *Client) Pipeline() Pipeliner {
|
||||
pipe := Pipeline{
|
||||
exec: pipelineExecer(c.processPipelineHook),
|
||||
}
|
||||
pipe := pipelinePool.Get().(*Pipeline)
|
||||
pipe.exec = pipelineExecer(c.processPipelineHook)
|
||||
pipe.cmds = getCmdSlice()
|
||||
pipe.init()
|
||||
return &pipe
|
||||
return pipe
|
||||
}
|
||||
|
||||
// AutoPipeline creates a new autopipeliner that automatically batches commands.
|
||||
|
||||
Reference in New Issue
Block a user