fix: 修复 #I5302M 问题的前两点
修改为在刷新时直接进行加载,而不用先使用keys删除再进行加载
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user