增加 spring.cache.globalKeyNames 参数,指定哪些为全局缓存,节省资源

This commit is contained in:
thinkgem
2025-06-23 09:37:40 +08:00
parent 3392c66fd5
commit 7317bc227e

View File

@@ -92,6 +92,10 @@ spring:
cache:
# 缓存及会话共享(专业版)
isClusterMode: false
# 给缓存Key增加数据源名称前缀 v5.6.1
keyPrefixWithDsName: false
# 指定全局Key不加DsName前缀当keyPrefixWithDsName设置为true的时有效cacheName:key|*v5.12.1
globalKeyNames: sysCache:configMap,sysCache:moduleMap,sysCache:areaAllList
# 清理全部缓存按钮所清理的缓存列表
clearNames: sysCache,corpCache,userCache,roleCache,fileUploadCache,msgPcPoolCache,cmsCache,bpmFormCache
# 用户缓存