优化参数&字典缓存操作

This commit is contained in:
RuoYi
2021-05-27 17:38:44 +08:00
parent 6fa3bfe051
commit af9cfb40a4
14 changed files with 155 additions and 92 deletions

View File

@ -151,6 +151,16 @@ public class DictUtils
return StringUtils.stripEnd(propertyString.toString(), separator);
}
/**
* 删除指定字典缓存
*
* @param key 字典键
*/
public static void removeDictCache(String key)
{
SpringUtils.getBean(RedisCache.class).deleteObject(getCacheKey(key));
}
/**
* 清空字典缓存
*/