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

Signed-off-by: taest <876239615@qq.com>
pull/235/head
taest 2 years ago committed by Gitee
parent 858f576fa3
commit 31523867e7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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

Loading…
Cancel
Save