1
0
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:
Nedyalko Dyakov
2025-11-11 01:47:53 +02:00
parent 8695314c11
commit 9e603e0f8e
2 changed files with 122 additions and 25 deletions

View File

@@ -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
}