mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-02-01 22:41:56 +08:00
!235 RedisService 删除Hash中的某条数据 方法返回值必为false问题修复
Merge pull request !235 from taest/N/A
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