Debian Codegraph @

src/test/resources/terracotta/ehcache-terracotta.xml

raw
1 <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../main/config/ehcache.xsd" name="tc" updateCheck="false">
2
3 <defaultCache
4 maxElementsInMemory="10"
5 eternal="false"
6 timeToIdleSeconds="5"
7 timeToLiveSeconds="10"
8 overflowToDisk="false">
9 <terracotta/>
10 </defaultCache>
11
12 <!-- An unclustered cache -->
13 <cache name="unclustered"
14 maxElementsInMemory="1000"
15 overflowToDisk="false"
16 memoryStoreEvictionPolicy="FIFO"
17 />
18
19 <!-- A basic clustered LFU cache -->
20 <cache name="clustered-1"
21 maxElementsInMemory="1000"
22 memoryStoreEvictionPolicy="LFU">
23 <terracotta/>
24 </cache>
25
26 <!-- Test clustered flag -->
27 <cache name="clustered-2"
28 maxElementsInMemory="1000"
29 memoryStoreEvictionPolicy="LFU">
30 <terracotta clustered="false"/>
31 </cache>
32
33 <!-- Test serialization mode -->
34 <cache name="clustered-3"
35 maxElementsInMemory="1000"
36 memoryStoreEvictionPolicy="LFU">
37 <terracotta valueMode="serialization"/>
38 </cache>
39
40 <!-- Test identity mode -->
41 <cache name="clustered-4"
42 maxElementsInMemory="1000"
43 memoryStoreEvictionPolicy="LFU">
44 <terracotta valueMode="identity"/>
45 </cache>
46
47 <!-- Test coherent reads -->
48 <cache name="clustered-5"
49 maxElementsInMemory="1000"
50 memoryStoreEvictionPolicy="LFU">
51 <terracotta coherentReads="false"/>
52 </cache>
53
54 <!-- Test orphan eviction disable -->
55 <cache name="clustered-6"
56 maxElementsInMemory="1000"
57 memoryStoreEvictionPolicy="LFU">
58 <terracotta orphanEviction="false"/>
59 </cache>
60
61 <!-- Test orphan eviction period -->
62 <cache name="clustered-7"
63 maxElementsInMemory="1000"
64 memoryStoreEvictionPolicy="LFU">
65 <terracotta orphanEvictionPeriod="42"/>
66 </cache>
67
68 <!-- Test local key cache enable -->
69 <cache name="clustered-8"
70 maxElementsInMemory="1000"
71 memoryStoreEvictionPolicy="LFU">
72 <terracotta localKeyCache="true"/>
73 </cache>
74
75 <!-- Test local key cache sizing -->
76 <cache name="clustered-9"
77 maxElementsInMemory="1000"
78 memoryStoreEvictionPolicy="LFU">
79 <terracotta localKeyCacheSize="42"/>
80 </cache>
81
82 <!-- Test coherent, default value -->
83 <cache name="clustered-10"
84 maxElementsInMemory="1000"
85 memoryStoreEvictionPolicy="LFU">
86 <terracotta/>
87 </cache>
88 <!-- Test coherent, false value-->
89 <cache name="clustered-11"
90 maxElementsInMemory="1000"
91 memoryStoreEvictionPolicy="LFU">
92 <terracotta coherent="false"/>
93 </cache>
94 <!-- Test coherent, true value -->
95 <cache name="clustered-12"
96 maxElementsInMemory="1000"
97 memoryStoreEvictionPolicy="LFU">
98 <terracotta coherent="true"/>
99 </cache>
100
101 <!-- Test synchronousWrites, default value -->
102 <cache name="clustered-13"
103 maxElementsInMemory="1000"
104 memoryStoreEvictionPolicy="LFU">
105 <terracotta/>
106 </cache>
107 <!-- Test synchronousWrites, false value-->
108 <cache name="clustered-14"
109 maxElementsInMemory="1000"
110 memoryStoreEvictionPolicy="LFU">
111 <terracotta synchronousWrites="false"/>
112 </cache>
113 <!-- Test synchronousWrites, true value -->
114 <cache name="clustered-15"
115 maxElementsInMemory="1000"
116 memoryStoreEvictionPolicy="LFU">
117 <terracotta synchronousWrites="true"/>
118 </cache>
119
120 <terracottaConfig url="localhost:9510"/>
121
122 </ehcache>