雪丛
2021-10-26 790aa0d24bee0036d9a697a18c130d531649213b
update ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java.
增加删除Hash中的数据
已修改1个文件
12 ■■■■■ 文件已修改
ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java
@@ -210,6 +210,18 @@
    }
    /**
     * 删除Hash中的数据
     *
     * @param key
     * @param mapkey
     */
    public void delCacheMapValue(final String key, final String hkey)
    {
        HashOperations hashOperations = redisTemplate.opsForHash();
        hashOperations.delete(key, hkey);
    }
    /**
     * 获取多个Hash中的数据
     *
     * @param key Redis键