Przeglądaj źródła

fix: change RedisHDelObj to use Del instead of HDel

RedwindA 9 miesięcy temu
rodzic
commit
191f521926
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      common/redis.go

+ 1 - 1
common/redis.go

@@ -97,7 +97,7 @@ func RedisHDelObj(key string) error {
 		SysLog(fmt.Sprintf("Redis HDEL: key=%s", key))
 		SysLog(fmt.Sprintf("Redis HDEL: key=%s", key))
 	}
 	}
 	ctx := context.Background()
 	ctx := context.Background()
-	return RDB.HDel(ctx, key).Err()
+	return RDB.Del(ctx, key).Err()
 }
 }
 
 
 func RedisHSetObj(key string, obj interface{}, expiration time.Duration) error {
 func RedisHSetObj(key string, obj interface{}, expiration time.Duration) error {