mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-09-03 19:27:59 +00:00
RedisService 删除Hash中的某条数据 方法返回值必为false问题修复
Signed-off-by: taest <876239615@qq.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user