若依
2022-08-24 afa23c21116dcfd7e6f4eac5b1f2be7ef242ee15
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;
    }
    /**
@@ -247,17 +247,17 @@
     * 删除Hash中的某条数据
     *
     * @param key Redis键
     * @param hKey  Hash键
     * @param hKey Hash键
     * @return 是否成功
     */
    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;
    }
    /**
     * 获得缓存的基本对象列表
     *
     *
     * @param pattern 字符串前缀
     * @return 对象列表
     */