提交 03d9317c 编写于 作者: zhouweidong's avatar zhouweidong

缓存配置

上级 624d2337
......@@ -3,18 +3,46 @@ TARGET=PSSYSTEM
</#ibiztemplate>
<#comment>通用配置文件</#comment>
<#assign nacosUrl = "172.16.102.211:8848" >
<#assign redisHost = "172.16.100.243" >
<#assign redisPort = "6379" >
<#assign redisDataBase = "0" >
<#if sysrun?? >
<#if sysrun.getPSDevSlnMSDepApp()??>
<#assign sysr = sysrun.getPSDevSlnMSDepApp()/>
<#if sysr.getPSDCMSPlatformNode()??>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("nacos","172.16.102.211:8848")??>
<#assign nacosUrl = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("nacos","172.16.102.211:8848")>
</#if>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("nacos","172.16.102.211:8848")??>
<#assign nacosUrl = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("nacos","172.16.102.211:8848")>
</#if>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisHost","172.16.100.243")??>
<#assign redisHost = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisHost","172.16.100.243")>
</#if>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisPort","6379")??>
<#assign redisPort = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisPort","6379")>
</#if>
<#if sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisDataBase","0")??>
<#assign redisDataBase = sysr.getPSDCMSPlatformNode().getPSDCMSPlatform().getUserParam("redisDataBase","0")>
</#if>
</#if>
</#if>
</#if>
#nacos配置中心、数据源
spring:
cache:
redis:
time-to-live: 3600
caffeine:
spec: initialCapacity=5,maximumSize=500,expireAfterWrite=3600s
redis:
host: ${redisHost}
port: ${redisPort}
password:
database: ${redisDataBase}
lettuce:
pool:
max-active: 32
max-wait: 300ms
max-idle: 16
min-idle: 8
cloud:
nacos:
discovery:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册