RedisService 删除Hash中的某条数据 方法返回值必为false问题修复
Signed-off-by: taest <876239615@qq.com>master
parent
858f576fa3
commit
31523867e7
|
@ -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…
Reference in New Issue