diff --git a/redis/cache.go b/redis/cache.go index 0ad0a4b..22a7f98 100644 --- a/redis/cache.go +++ b/redis/cache.go @@ -202,7 +202,7 @@ func (r *redisC) doCmd(cmd string, args ...interface{}) (interface{}, error) { defer r.conf.TimeTracker(commandKpiName(cmd), time.Now()) result, err := r.cluster.Do(context.Background(), append([]interface{}{cmd}, args...)...).Result() if err == redisCluster.Nil { - return result, nil + return result, redis.ErrNil } return result, err