fix: 修复 #I5302M 问题的前两点

修改为在刷新时直接进行加载,而不用先使用keys删除再进行加载
This commit is contained in:
zhangRui
2022-04-15 19:49:36 +08:00
parent de5ae4a05e
commit 6645f7c5ce
5 changed files with 2 additions and 36 deletions

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