diff --git a/core/stores/redis/redis.go b/core/stores/redis/redis.go index 9095d7d3..f3e2a7a2 100644 --- a/core/stores/redis/redis.go +++ b/core/stores/redis/redis.go @@ -681,7 +681,7 @@ func (s *Redis) HdelCtx(ctx context.Context, key string, fields ...string) (val return err } - val = v == 1 + val = v >= 1 return nil }, acceptable) @@ -1219,7 +1219,7 @@ func (s *Redis) PfaddCtx(ctx context.Context, key string, values ...interface{}) return err } - val = v == 1 + val = v >= 1 return nil }, acceptable)