Pre Merge pull request !469 from ZhangRui/fix_issue_I5302M

This commit is contained in:
ZhangRui
2022-04-23 12:55:17 +00:00
committed by Gitee
6 changed files with 3 additions and 36 deletions

View File

@ -239,6 +239,7 @@ public class RedisCache
* @param pattern 字符串前缀
* @return 对象列表
*/
@Deprecated
public Collection<String> keys(final String pattern)
{
return redisTemplate.keys(pattern);

View File

@ -160,14 +160,7 @@ public class DictUtils
SpringUtils.getBean(RedisCache.class).deleteObject(getCacheKey(key));
}
/**
* 清空字典缓存
*/
public static void clearDictCache()
{
Collection<String> keys = SpringUtils.getBean(RedisCache.class).keys(Constants.SYS_DICT_KEY + "*");
SpringUtils.getBean(RedisCache.class).deleteObject(keys);
}
/**
* 设置cache key