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

Merge pull request !235 from taest/N/A
pull/178/MERGE
若依 2 years ago committed by Gitee
commit 8345eed709
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