boweniac 6 days ago
parent
commit
190dd78f94
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/resources/ehcache.xml

+ 2 - 1
src/main/resources/ehcache.xml

@@ -4,7 +4,8 @@
     <!-- 缓存位置可以是自定义的硬盘地址也可以是JVM默认使用的缓存地址-->    
     <!--<diskStore path="d:\cache"/> -->    
     <defaultCache maxElementsInMemory="30000" eternal="false" timeToIdleSeconds="60" timeToLiveSeconds="60" overflowToDisk="true" maxElementsOnDisk="0" memoryStoreEvictionPolicy="LFU" />      	
-    <cache name="custom" maxElementsInMemory="200000" eternal="false" timeToIdleSeconds="100" timeToLiveSeconds="100" overflowToDisk="true"/> 
+    <cache name="custom" maxElementsInMemory="200000" eternal="false" timeToIdleSeconds="100" timeToLiveSeconds="100" overflowToDisk="true"/>
+    <cache name="system" maxElementsInMemory="200000" maxElementsOnDisk="0" eternal="false" timeToIdleSeconds="60" timeToLiveSeconds="60" overflowToDisk="true" memoryStoreEvictionPolicy="FIFO"/>
     <!--         
          配置自定义缓存        
     name:Cache的唯一标识