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

增加删除Hash中的数据
This commit is contained in:
雪丛 2021-10-26 01:42:12 +00:00 committed by Gitee
parent 8a7dcf8a80
commit 790aa0d24b
1 changed files with 12 additions and 0 deletions

View File

@ -209,6 +209,18 @@ public class RedisCache
return opsForHash.get(key, hKey); 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中的数据 * 获取多个Hash中的数据
* *