提交者
Gitee
!358 update ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java.
Merge pull request !358 from 雪丛/N/A
正在显示
1 个修改的文件
包含
12 行增加
和
0 行删除
| @@ -210,6 +210,18 @@ public class RedisCache | @@ -210,6 +210,18 @@ public class RedisCache | ||
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | /** | 212 | /** |
| 213 | + * 删除Hash中的数据 | ||
| 214 | + * | ||
| 215 | + * @param key | ||
| 216 | + * @param mapkey | ||
| 217 | + */ | ||
| 218 | + public void delCacheMapValue(final String key, final String hkey) | ||
| 219 | + { | ||
| 220 | + HashOperations hashOperations = redisTemplate.opsForHash(); | ||
| 221 | + hashOperations.delete(key, hkey); | ||
| 222 | + } | ||
| 223 | + | ||
| 224 | + /** | ||
| 213 | * 获取多个Hash中的数据 | 225 | * 获取多个Hash中的数据 |
| 214 | * | 226 | * |
| 215 | * @param key Redis键 | 227 | * @param key Redis键 |
-
请 注册 或 登录 后发表评论