提交 790aa0d2 authored 作者: 雪丛's avatar 雪丛 提交者: Gitee

update ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java.

增加删除Hash中的数据
上级 8a7dcf8a
......@@ -209,6 +209,18 @@ public class RedisCache
return opsForHash.get(key, hKey);
}
/**
* 删除Hash中的数据
*
* @param key
* @param mapkey
*/
public void delCacheMapValue(final String key, final String hkey)
{
HashOperations hashOperations = redisTemplate.opsForHash();
hashOperations.delete(key, hkey);
}
/**
* 获取多个Hash中的数据
*
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论