Debian Codegraph @

src/test/resources/ehcache-default-decorator-test.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:noNamespaceSchemaLocation="../../main/config/ehcache.xsd">
5
6 <!-- Disable for test ehcache.xml. Should go to the same place. -->
7 <diskStore path="java.io.tmpdir" />
8
9 <defaultCache maxElementsInMemory="10" eternal="false"
10 timeToIdleSeconds="5" timeToLiveSeconds="10" overflowToDisk="false">
11 <cacheDecoratorFactory
12 class="net.sf.ehcache.constructs.MockDecoratorFactory" properties="name=defaultDecoratorOne, someKey=defaultDecoratorOne" />
13 <cacheDecoratorFactory
14 class="net.sf.ehcache.constructs.MockDecoratorFactory" properties="name=defaultDecoratorTwo, someKey=defaultDecoratorTwo" />
15 </defaultCache>
16
17 <cache name="noDecoratorCache" eternal="false"
18 maxElementsInMemory="1000" overflowToDisk="false" />
19
20 <cache name="oneDecoratorCache" eternal="false"
21 maxElementsInMemory="1000" overflowToDisk="false">
22 <cacheDecoratorFactory
23 class="net.sf.ehcache.constructs.MockDecoratorFactory" properties="name=oneDecoratorCacheFirst, someKey=oneFirst" />
24 </cache>
25
26 </ehcache>