gongchunyi
2026-03-05 0907687e631c643a4cf0d41c1d2d4a645e69f0a7
src/main/java/com/ruoyi/framework/redis/RedisCache.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;
    }
    /**
@@ -232,18 +232,6 @@
    }
    /**
     * 删除Hash中的数据
     *
     * @param key
     * @param hKey
     */
    public void delCacheMapValue(final String key, final String hKey)
    {
        HashOperations hashOperations = redisTemplate.opsForHash();
        hashOperations.delete(key, hKey);
    }
    /**
     * 获取多个Hash中的数据
     *
     * @param key Redis键
@@ -264,7 +252,7 @@
     */
    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;
    }
    /**