eval.go 257 B

123456789
  1. package cache
  2. func (p *RedisCache) Eval(script string, keys []string, args ...interface{}) (val interface{}, err error) {
  3. if p.isCluster {
  4. return p.cluster.Eval(script, keys, args...).Result()
  5. }
  6. return p.client.Eval(script, keys, args...).Result()
  7. }