1 <?xml version="1.0" encoding="UTF-8"?>
2 <ehcache updateCheck="false">
3
4 <diskStore path="java.io.tmpdir" />
5
6 <!-- Cluster localhost setting -->
7 <cacheManagerPeerProviderFactory
8 class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
9 properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1,
10 multicastGroupPort=4446, timeToLive=32"/>
11
12 <cacheManagerPeerListenerFactory
13 class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
14 properties="hostName=localhost, port=40001,socketTimeoutMillis=2000" />
15
16
17 <cache name="dictCache" maxElementsInMemory="500" overflowToDisk="true"
18 eternal="true">
19 <cacheEventListenerFactory
20 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
21 properties="replicatePuts=false,replicateUpdatesViaCopy=false" />
22 </cache>
23
24 <cache name="eternalCache" maxElementsInMemory="500"
25 overflowToDisk="true" eternal="false" timeToIdleSeconds="1200"
26 timeToLiveSeconds="1200">
27 <cacheEventListenerFactory
28 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
29 properties="replicatePuts=false,replicateUpdatesViaCopy=false" />
30 </cache>
31 <!-- DefaultCache setting. Modify ehcache-safe.xml for timeToIdleSeconds,timeToLiveSecond,diskExpiryThreadIntervalSeconds
32 Use ehcache-safe.xml default for maxElementsInMemory,maxElementsOnDisk,overflowToDisk,eternal
33 Use ehcache default for memoryStoreEvictionPolicy,diskPersistent,. -->
34 <defaultCache maxElementsInMemory="10000" overflowToDisk="true"
35 eternal="false" memoryStoreEvictionPolicy="LRU" maxElementsOnDisk="10000000"
36 diskExpiryThreadIntervalSeconds="600" timeToIdleSeconds="3600"
37 timeToLiveSeconds="100000" diskPersistent="false" />
38 </ehcache>