Debian Codegraph @

src/test/resources/ehcache-replacement.xml

raw
1 <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../main/config/ehcache.xsd">
2
3 <!-- This does not work, because the java.io.tmpdir gets replaced before the property replacement-->
4 <diskStore path="${specialdir}/subdirectory/nextone"/>
5
6 <cacheManagerPeerProviderFactory
7 class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
8 properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1,
9 multicastGroupPort=${multicastGroupPort}, timeToLive=0"/>
10
11
12 <terracottaConfig url="${serverAndPort}"/>
13
14
15
16 <defaultCache
17 maxElementsInMemory="10"
18 eternal="false"
19 timeToIdleSeconds="5"
20 timeToLiveSeconds="10"
21 overflowToDisk="false"
22 />
23
24 <!-- Sample cache named sampleCache1 -->
25 <cache name="sampleCache1"
26 maxElementsInMemory="10000"
27 eternal="false"
28 timeToIdleSeconds="360"
29 timeToLiveSeconds="1000"
30 overflowToDisk="false"
31 />
32
33 <!-- Sample cache named sampleCache2 -->
34 <cache name="sampleCache2"
35 maxElementsInMemory="1000"
36 eternal="true"
37 timeToIdleSeconds="0"
38 timeToLiveSeconds="0"
39 overflowToDisk="false"
40 />
41
42
43
44
45 </ehcache>