share-platform/renren-admin/src/main/resources/ehcache.xml

78 lines
2.7 KiB
XML
Raw Normal View History

2022-05-31 11:11:13 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<ehcache updateCheck="false" name="defaultCache">
<!-- 磁盘缓存位置 -->
<diskStore path="java.io.tmpdir/ehcache"/>
<!--
maxEntriesLocalHeap:堆内存中最大缓存对象数
eternal:对象是否永久有效一但设置了timeout将不起作用
overflowToDisk:当缓存达到maxElementsInMemory值是,是否允许溢出到磁盘
timeToIdleSeconds:当缓存闲置n秒后销毁
timeToLiveSeconds:当缓存存活n秒后销毁
maxEntriesLocalDisk:硬盘最大缓存个数
diskPersistent:磁盘缓存在JVM重新启动时是否保持
-->
<!-- 默认缓存 -->
<defaultCache
maxEntriesLocalHeap="10000"
eternal="false"
timeToIdleSeconds="600"
timeToLiveSeconds="600"
maxEntriesLocalDisk="10000000"
diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU"/>
<!-- fill-in缓存 -->
<cache name="fillIn"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="600"
timeToLiveSeconds="600"
overflowToDisk="false"
memoryStoreEvictionPolicy="LRU"/>
2022-06-27 16:56:35 +08:00
<!-- selectDeptList缓存 -->
<cache name="selectDeptList"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="600"
timeToLiveSeconds="6000"
overflowToDisk="false"
memoryStoreEvictionPolicy="LRU"/>
<!-- selectDTOPageSpecilTotal缓存 -->
<cache name="selectDTOPageSpecilTotal"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="600"
timeToLiveSeconds="6000"
overflowToDisk="false"
memoryStoreEvictionPolicy="LRU"/>
2022-06-28 19:18:39 +08:00
<!-- selectWithAttrs缓存 -->
<cache name="selectWithAttrs"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="600"
timeToLiveSeconds="6000"
overflowToDisk="false"
memoryStoreEvictionPolicy="LRU"/>
2022-07-05 09:21:03 +08:00
<!-- getByToken缓存 -->
<cache name="getByToken"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="60"
timeToLiveSeconds="600"
overflowToDisk="true"
memoryStoreEvictionPolicy="LRU"/>
<!-- getCategoryTree缓存 -->
<cache name="getCategoryTree"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="60"
timeToLiveSeconds="600"
overflowToDisk="true"
memoryStoreEvictionPolicy="LRU"/>
2022-05-31 11:11:13 +08:00
</ehcache>