diff --git a/domain/cache/group_c/group.go b/domain/cache/group_c/group.go index 3dc6431f4b1047bc730744f7f99ce62599026842..265ead80278d9382a6c8e816fd119e6c1f357660 100644 --- a/domain/cache/group_c/group.go +++ b/domain/cache/group_c/group.go @@ -83,17 +83,17 @@ func SetGroupMemberTTL(groupId string, ttl time.Duration) (bool, error) { func GetGroupConsume(groupId string) (uint64, error) { key := getGroupConsumeKey(groupId) - return redisCli.RedisClient.Get(context.Background(), key).Uint64() + return redisCli.RedisClusterClient.Get(context.Background(), key).Uint64() } func SetGroupConsume(groupId string, consume uint64, ttl time.Duration) error { key := getGroupConsumeKey(groupId) - return redisCli.RedisClient.Set(context.Background(), key, consume, ttl).Err() + return redisCli.RedisClusterClient.Set(context.Background(), key, consume, ttl).Err() } func ClearGroupConsume(groupId string) error { key := getGroupConsumeKey(groupId) - return redisCli.RedisClient.Del(context.Background(), key).Err() + return redisCli.RedisClusterClient.Del(context.Background(), key).Err() } // 增加编辑用户cd