fix: change RedisHDelObj to use Del instead of HDel

This commit is contained in:
RedwindA
2025-06-05 20:42:56 +08:00
parent 8e6039b995
commit 191f521926

View File

@@ -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 {