pipeline.go 180 B

123456789101112
  1. package redis
  2. import (
  3. "github.com/go-redis/redis"
  4. )
  5. func (p *Redis) Pipeline() redis.Pipeliner {
  6. if p.cluster {
  7. return p.cclient.Pipeline()
  8. }
  9. return p.client.Pipeline()
  10. }