29 lines
954 B
XML
29 lines
954 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd">
|
|
|
|
<!-- 磁盘缓存位置 -->
|
|
<diskStore path="java.io.tmpdir"/>
|
|
|
|
<!-- 默认缓存 -->
|
|
<defaultCache
|
|
maxElementsInMemory="10000"
|
|
eternal="false"
|
|
timeToIdleSeconds="3600"
|
|
timeToLiveSeconds="3600"
|
|
maxElementsOnDisk="10000000"
|
|
diskExpiryThreadIntervalSeconds="120"
|
|
memoryStoreEvictionPolicy="LFU">
|
|
<persistence strategy="localTempSwap"/>
|
|
</defaultCache>
|
|
|
|
<!-- 字典元素缓存 -->
|
|
<cache name="dictionary"
|
|
maxElementsInMemory="10000"
|
|
eternal="true"
|
|
overflowToDisk="true"
|
|
maxElementsOnDisk="10000000"
|
|
diskExpiryThreadIntervalSeconds="120"
|
|
memoryStoreEvictionPolicy="LFU">
|
|
</cache>
|
|
</ehcache> |