fix: 返回类型错误,不是布尔类型

This commit is contained in:
runphp 2022-08-08 02:31:35 +00:00 committed by Gitee
parent c8a108b93a
commit 3657bea488
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 5 additions and 4 deletions

View File

@ -243,16 +243,17 @@ public class RedisService
return redisTemplate.opsForHash().multiGet(key, hKeys);
}
/**
* 删除Hash中的某条数据
* 删除Hash中的数据
*
* @param key Redis键
* @param hKey Hash键
* @param hKeys Hash键
* @return 是否成功
*/
public boolean deleteCacheMapValue(final String key, final String hKey)
public long deleteCacheMapValue(final String key, final Object... hKeys)
{
return Boolean.TRUE.equals(redisTemplate.opsForHash().delete(key, hKey));
return redisTemplate.opsForHash().delete(key, hKeys);
}
/**