!235 RedisService 删除Hash中的某条数据 方法返回值必为false问题修复

Merge pull request !235 from taest/N/A
This commit is contained in:
若依
2022-08-22 06:38:34 +00:00
committed by Gitee

View File

@@ -252,7 +252,7 @@ public class RedisService
*/
public boolean deleteCacheMapValue(final String key, final String hKey)
{
return Boolean.TRUE.equals(redisTemplate.opsForHash().delete(key, hKey));
return redisTemplate.opsForHash().delete(key, hKey) > 0;
}
/**