ruoyi-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/service/RedisService.java
@@ -124,9 +124,9 @@ * @param collection 多个对象 * @return */ public long deleteObject(final Collection collection) public boolean deleteObject(final Collection collection) { return redisTemplate.delete(collection); return redisTemplate.delete(collection) > 0; } /** @@ -244,6 +244,18 @@ } /** * 删除Hash中的某条数据 * * @param key Redis键 * @param hKey Hash键 * @return 是否成功 */ public boolean deleteCacheMapValue(final String key, final String hKey) { return redisTemplate.opsForHash().delete(key, hKey) > 0; } /** * 获得缓存的基本对象列表 * * @param pattern 字符串前缀