RuoYi
2025-08-27 e6a3415a7182c0a5e64dd369a91ac5f2a6b7870d
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,8 +244,20 @@
    }
    /**
     * 删除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 字符串前缀
     * @return 对象列表
     */