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

Signed-off-by: taest <876239615@qq.com>
This commit is contained in:
taest
2022-08-19 08:26:05 +00:00
committed by Gitee
parent 858f576fa3
commit 31523867e7

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;
}
/**