优化参数&字典缓存操作

This commit is contained in:
RuoYi
2021-05-27 21:13:48 +08:00
parent af479c7838
commit 67feb9947e
14 changed files with 155 additions and 92 deletions

View File

@@ -43,6 +43,16 @@ public class DictUtils
return null;
}
/**
* 删除指定字典缓存
*
* @param key 字典键
*/
public static void removeDictCache(String key)
{
SpringUtils.getBean(RedisService.class).deleteObject(getCacheKey(key));
}
/**
* 清空字典缓存
*/