mirror of
https://github.com/redis/go-redis.git
synced 2025-12-03 18:31:14 +03:00
unstable wip
This commit is contained in:
@@ -167,6 +167,15 @@ func putPipeline(pipe *Pipeline) {
|
||||
pipelinePool.Put(pipe)
|
||||
}
|
||||
|
||||
// putPipeliner returns a Pipeliner to the pool for reuse (if it's a *Pipeline)
|
||||
func putPipeliner(pipe Pipeliner) {
|
||||
if p, ok := pipe.(*Pipeline); ok {
|
||||
putPipeline(p)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
func (c *Pipeline) Pipeline() Pipeliner {
|
||||
return c
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user