二级缓存策略调整

This commit is contained in:
wangliwen 2022-07-08 11:00:17 +08:00
parent 44dd889936
commit a34e254e79
1 changed files with 10 additions and 5 deletions

View File

@ -36,7 +36,8 @@
eternal="false"
timeToIdleSeconds="600"
timeToLiveSeconds="6000"
overflowToDisk="false"
overflowToDisk="true"
diskPersistent="true"
memoryStoreEvictionPolicy="LRU"/>
<!-- selectDTOPageSpecilTotal缓存 -->
@ -45,7 +46,8 @@
eternal="false"
timeToIdleSeconds="600"
timeToLiveSeconds="6000"
overflowToDisk="false"
overflowToDisk="true"
diskPersistent="true"
memoryStoreEvictionPolicy="LRU"/>
<!-- selectWithAttrs缓存 -->
@ -54,7 +56,8 @@
eternal="false"
timeToIdleSeconds="600"
timeToLiveSeconds="6000"
overflowToDisk="false"
overflowToDisk="true"
diskPersistent="true"
memoryStoreEvictionPolicy="LRU"/>
<!-- getByToken缓存 -->
@ -64,15 +67,17 @@
timeToIdleSeconds="60"
timeToLiveSeconds="600"
overflowToDisk="true"
diskPersistent="true"
memoryStoreEvictionPolicy="LRU"/>
<!-- getCategoryTree缓存 -->
<cache name="getCategoryTree"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="60"
timeToLiveSeconds="600"
timeToIdleSeconds="600"
timeToLiveSeconds="6000"
overflowToDisk="true"
diskPersistent="true"
memoryStoreEvictionPolicy="LRU"/>
</ehcache>