Debian Codegraph @

src/test/perfResources/ehcache-distributed3.xml

raw
1 <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../main/config/ehcache.xsd">
2
3
4 <!-- Sets the path to the directory where cache .data files are created.
5
6 If the path is a Java System Property it is replaced by
7 its value in the running VM. Subdirectories can be specified below the property e.g. java.io.tmpdir/one
8
9 The following properties are translated:
10 user.home - User's home directory
11 user.dir - User's current working directory
12 java.io.tmpdir - Default temp file path -->
13 <diskStore path="user.dir/target/diskStore/three"/>
14
15
16 <!--
17 Specifies a CacheManagerEventListenerFactory which will be used to create a CacheManagerPeerProvider, which
18 is notified when Caches are added or removed from the CacheManager.
19
20 The attributes of CacheManagerEventListenerFactory are:
21 - class - a fully qualified factory class name
22 - properties - comma separated properties having meaning only to the factory.
23
24 Sets the fully qualified class name to be registered as the CacheManager event listener.
25
26 The events include:
27 - adding a Cache
28 - removing a Cache
29
30 Callbacks to listener methods are synchronous and unsynchronized. It is the responsibility of the implementer
31 to safely handle the potential performance and thread safety issues depending on what their listener is doing.
32
33 If no class is specified, no listener is created. There is no default.
34 -->
35 <!--
36 <cacheManagerEventListenerFactory class="net.sf.ehcache.event.TestCacheManagerEventListenerFactory"
37 properties="type=counting"/>
38 -->
39
40
41 <!--
42 How a CacheManager, which is part of a cluster, can find other peers.
43 There are two peer providers so far:
44
45 net.sf.ehcache.distribution.MulticastRMIManagerPeerProviderrovider
46 net.sf.ehcache.distribution.RMIManagerPeerProviderrovider
47
48 class - The fully qualified class name of the provider
49 properties - Properties to be interpreted by the factory
50 -->
51 <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
52 properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446, timeToLive=0"/>
53
54
55 <!--
56 (Enable for distributed operation)
57
58 Specifies a CacheManagerPeerListenerFactory which will be used to create a CacheManagerPeerListener, which
59 listens for messages from cache replicators participating in the cluster.
60
61 The attributes of cacheManagerPeerListenerFactory are:
62 - class - a fully qualified factory class name
63 - properties - comma separated properties having meaning only to the factory.
64
65 Ehcache comes with a built-in RMI-based distribution system. The listener component is RMICacheManagerPeerListener
66 which is configured using RMICacheManagerPeerListenerFactory. It is configured as per the following example:
67
68 <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
69 properties="hostName=localhost, port=5011, socketTimeoutMillis=2000"/>
70
71 Valid properties are:
72 - hostName (optional) - the hostName of the host the listener is running on. Specify where the host is multihomed
73 and you want to control the interface over which cluster messages are received.
74 - port (mandatory) - the port the listener listens on.
75 - socketTimeoutMillis - the number of seconds client sockets will wait when sending messages to this listener
76 until they give up. By default this is 120s.
77
78 -->
79 <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
80 properties="hostName=, port=5013, socketTimeoutMillis=120000"/>
81
82
83 <!--Default Cache configuration. These will applied to caches programmatically created through
84 the CacheManager.
85
86 The following attributes are required:
87
88 maxElementsInMemory - Sets the maximum number of objects that will be created in memory
89 eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the
90 element is never expired.
91 overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
92 has reached the maxInMemory limit.
93
94 The following attributes are optional:
95 timeToIdleSeconds - Sets the time to idle for an element before it expires.
96 i.e. The maximum amount of time between accesses before an element expires
97 Is only used if the element is not eternal.
98 Optional attribute. A value of 0 means that an Element can idle for infinity.
99 The default value is 0.
100 timeToLiveSeconds - Sets the time to live for an element before it expires.
101 i.e. The maximum time between creation time and when an element expires.
102 Is only used if the element is not eternal.
103 Optional attribute. A value of 0 means that and Element can live for infinity.
104 The default value is 0.
105 diskPersistent - Whether the disk store persists between restarts of the Virtual Machine.
106 The default value is false.
107 diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value
108 is 120 seconds.
109 memoryStoreEvictionPolicy - Policy would be enforced upon reaching the maxElementsInMemory limit. Default
110 policy is Least Recently Used (specified as LRU). Other policies available -
111 First In First Out (specified as FIFO) and Less Frequently Used
112 (specified as LFU)
113 -->
114
115 <defaultCache
116 maxElementsInMemory="10"
117 eternal="false"
118 timeToIdleSeconds="100"
119 timeToLiveSeconds="100"
120 overflowToDisk="true">
121 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
122 properties="replicateAsynchronously=true,
123 replicatePuts=true,
124 replicateUpdates=true,
125 replicateUpdatesViaCopy=true,
126 replicateRemovals=true "/>
127 </defaultCache>
128
129
130 <!--Predefined caches. Add your cache configuration settings here.
131 If you do not have a configuration for your cache a WARNING will be issued when the
132 CacheManager starts
133
134 The following attributes are required for defaultCache:
135
136 name - Sets the name of the cache. This is used to identify the cache.
137 It must be unique.
138 maxElementsInMemory - Sets the maximum number of objects that will be created in memory
139 eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the
140 element is never expired.
141 overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
142 has reached the maxInMemory limit.
143
144 The following attributes are optional:
145 timeToIdleSeconds - Sets the time to idle for an element before it expires.
146 i.e. The maximum amount of time between accesses before an element expires
147 Is only used if the element is not eternal.
148 Optional attribute. A value of 0 means that an Element can idle for infinity.
149 The default value is 0.
150 timeToLiveSeconds - Sets the time to live for an element before it expires.
151 i.e. The maximum time between creation time and when an element expires.
152 Is only used if the element is not eternal.
153 Optional attribute. A value of 0 means that and Element can live for infinity.
154 The default value is 0.
155 diskPersistent - Whether the disk store persists between restarts of the Virtual Machine.
156 The default value is false.
157 diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value
158 is 120 seconds.
159 memoryStoreEvictionPolicy - Policy would be enforced upon reaching the maxElementsInMemory limit. Default
160 policy is Least Recently Used (specified as LRU). Other policies available -
161 First In First Out (specified as FIFO) and Less Frequently Used
162 (specified as LFU)
163 -->
164
165
166 <!-- Sample cache named sampleCache1 -->
167 <cache name="sampleCache1"
168 maxElementsInMemory="10"
169 eternal="true"
170 timeToIdleSeconds="100"
171 timeToLiveSeconds="100"
172 overflowToDisk="true"
173 memoryStoreEvictionPolicy="LRU"
174 diskExpiryThreadIntervalSeconds="1000"
175 >
176 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
177 properties="replicateAsynchronously=true,
178 replicatePuts=true,
179 replicateUpdates=true,
180 replicateUpdatesViaCopy=true,
181 replicateRemovals=true"/>
182 <!--<cacheEventListenerFactory class="net.sf.ehcache.event.CountingCacheEventListenerFactory"/>-->
183 <bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
184 properties="bootstrapAsynchronously=true,
185 maximumChunkSizeBytes=5000000"/>
186 </cache>
187
188 <!-- Sample cache named sampleCache2. This one has a 10ms cache replication interval. -->
189 <cache name="sampleCache2"
190 maxElementsInMemory="10"
191 eternal="false"
192 timeToIdleSeconds="100"
193 timeToLiveSeconds="100"
194 overflowToDisk="true">
195 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
196 properties="replicateAsynchronously=true,
197 replicatePuts=true,
198 replicateUpdates=true,
199 replicateUpdatesViaCopy=false,
200 replicateRemovals=true,
201 asynchronousReplicationIntervalMillis=10"/>
202 <bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
203 properties="bootstrapAsynchronously=false,
204 maximumChunkSizeBytes=5000000"/>
205 </cache>
206
207
208 <!-- Sample cache named sampleCache3. It is set for synchronous replication. -->
209 <cache name="sampleCache3"
210 maxElementsInMemory="10"
211 eternal="true"
212 overflowToDisk="true">
213 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
214 properties="replicateAsynchronously=false, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
215 </cache>
216
217 <!-- Sample cache named sampleCache4. All missing RMICacheReplicatorFactory properties default to true -->
218 <cache name="sampleCache4"
219 maxElementsInMemory="10"
220 eternal="true"
221 overflowToDisk="false"
222 memoryStoreEvictionPolicy="LFU">
223 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/>
224 </cache>
225
226 <!-- Sample cache names sampleCache5. The missing replicatePuts will default to true -->
227 <cache name="sampleCache5"
228 maxElementsInMemory="10"
229 eternal="false"
230 timeToLiveSeconds="100"
231 overflowToDisk="false">
232 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
233 properties="replicateAsynchronously=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
234 </cache>
235
236 <cache name="sampleCache6"
237 maxElementsInMemory="10"
238 eternal="false"
239 timeToLiveSeconds="100"
240 overflowToDisk="false">
241 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
242 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
243 </cache>
244
245 <cache name="sampleCache7"
246 maxElementsInMemory="10"
247 eternal="false"
248 timeToLiveSeconds="100"
249 overflowToDisk="false">
250 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
251 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
252 </cache>
253
254
255 <cache name="sampleCache8"
256 maxElementsInMemory="10"
257 eternal="false"
258 timeToLiveSeconds="100"
259 overflowToDisk="false">
260 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
261 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
262 </cache>
263
264
265 <cache name="sampleCache9"
266 maxElementsInMemory="10"
267 eternal="false"
268 timeToLiveSeconds="100"
269 overflowToDisk="false">
270 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
271 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
272 </cache>
273
274
275 <cache name="sampleCache10"
276 maxElementsInMemory="10"
277 eternal="false"
278 timeToLiveSeconds="100"
279 overflowToDisk="false">
280 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
281 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
282 </cache>
283
284
285 <cache name="sampleCache11"
286 maxElementsInMemory="10"
287 eternal="false"
288 timeToLiveSeconds="100"
289 overflowToDisk="false">
290 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
291 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
292 </cache>
293
294
295 <cache name="sampleCache12"
296 maxElementsInMemory="10"
297 eternal="false"
298 timeToLiveSeconds="100"
299 overflowToDisk="false">
300 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
301 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
302 </cache>
303
304
305 <cache name="sampleCache13"
306 maxElementsInMemory="10"
307 eternal="false"
308 timeToLiveSeconds="100"
309 overflowToDisk="false">
310 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
311 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
312 </cache>
313
314
315 <cache name="sampleCache15"
316 maxElementsInMemory="10"
317 eternal="false"
318 timeToLiveSeconds="100"
319 overflowToDisk="false">
320 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
321 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
322 </cache>
323
324
325 <cache name="sampleCache16"
326 maxElementsInMemory="10"
327 eternal="false"
328 timeToLiveSeconds="100"
329 overflowToDisk="false">
330 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
331 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
332 </cache>
333
334
335 <cache name="sampleCache17"
336 maxElementsInMemory="10"
337 eternal="false"
338 timeToLiveSeconds="100"
339 overflowToDisk="false">
340 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
341 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
342 </cache>
343
344
345 <cache name="sampleCache18"
346 maxElementsInMemory="10"
347 eternal="false"
348 timeToLiveSeconds="100"
349 overflowToDisk="false">
350 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
351 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
352 </cache>
353
354
355 <cache name="sampleCache19"
356 maxElementsInMemory="10"
357 eternal="false"
358 timeToLiveSeconds="100"
359 overflowToDisk="false">
360 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
361 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
362 </cache>
363
364
365 <cache name="sampleCache20"
366 maxElementsInMemory="10"
367 eternal="false"
368 timeToLiveSeconds="100"
369 overflowToDisk="false">
370 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
371 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
372 </cache>
373
374
375 <cache name="sampleCache21"
376 maxElementsInMemory="10"
377 eternal="false"
378 timeToLiveSeconds="100"
379 overflowToDisk="false">
380 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
381 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
382 </cache>
383
384
385 <cache name="sampleCache22"
386 maxElementsInMemory="10"
387 eternal="false"
388 timeToLiveSeconds="100"
389 overflowToDisk="false">
390 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
391 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
392 </cache>
393
394
395 <cache name="sampleCache23"
396 maxElementsInMemory="10"
397 eternal="false"
398 timeToLiveSeconds="100"
399 overflowToDisk="false">
400 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
401 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
402 </cache>
403
404
405 <cache name="sampleCache24"
406 maxElementsInMemory="10"
407 eternal="false"
408 timeToLiveSeconds="100"
409 overflowToDisk="false">
410 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
411 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
412 </cache>
413
414
415 <cache name="sampleCache25"
416 maxElementsInMemory="10"
417 eternal="false"
418 timeToLiveSeconds="100"
419 overflowToDisk="false">
420 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
421 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
422 </cache>
423
424
425 <cache name="sampleCache26"
426 maxElementsInMemory="10"
427 eternal="false"
428 timeToLiveSeconds="100"
429 overflowToDisk="false">
430 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
431 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
432 </cache>
433
434
435 <cache name="sampleCache27"
436 maxElementsInMemory="10"
437 eternal="false"
438 timeToLiveSeconds="100"
439 overflowToDisk="false">
440 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
441 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
442 </cache>
443
444
445 <cache name="sampleCache28"
446 maxElementsInMemory="10"
447 eternal="false"
448 timeToLiveSeconds="100"
449 overflowToDisk="false">
450 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
451 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
452 </cache>
453
454 <cache name="sampleCache29"
455 maxElementsInMemory="10"
456 eternal="false"
457 timeToLiveSeconds="100"
458 overflowToDisk="false">
459 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
460 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
461 </cache>
462
463 <cache name="sampleCache30"
464 maxElementsInMemory="10"
465 eternal="false"
466 timeToLiveSeconds="100"
467 overflowToDisk="false">
468 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
469 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
470 </cache>
471
472 <cache name="sampleCache31"
473 maxElementsInMemory="10"
474 eternal="false"
475 timeToLiveSeconds="100"
476 overflowToDisk="false">
477 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
478 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
479 </cache>
480
481 <cache name="sampleCache32"
482 maxElementsInMemory="10"
483 eternal="false"
484 timeToLiveSeconds="100"
485 overflowToDisk="false">
486 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
487 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
488 </cache>
489
490 <cache name="sampleCache33"
491 maxElementsInMemory="10"
492 eternal="false"
493 timeToLiveSeconds="100"
494 overflowToDisk="false">
495 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
496 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
497 </cache>
498
499 <cache name="sampleCache34"
500 maxElementsInMemory="10"
501 eternal="false"
502 timeToLiveSeconds="100"
503 overflowToDisk="false">
504 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
505 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
506 </cache>
507
508 <cache name="sampleCache35"
509 maxElementsInMemory="10"
510 eternal="false"
511 timeToLiveSeconds="100"
512 overflowToDisk="false">
513 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
514 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
515 </cache>
516
517 <cache name="sampleCache36"
518 maxElementsInMemory="10"
519 eternal="false"
520 timeToLiveSeconds="100"
521 overflowToDisk="false">
522 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
523 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
524 </cache>
525
526 <cache name="sampleCache37"
527 maxElementsInMemory="10"
528 eternal="false"
529 timeToLiveSeconds="100"
530 overflowToDisk="false">
531 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
532 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
533 </cache>
534
535 <cache name="sampleCache38"
536 maxElementsInMemory="10"
537 eternal="false"
538 timeToLiveSeconds="100"
539 overflowToDisk="false">
540 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
541 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
542 </cache>
543
544 <cache name="sampleCache39"
545 maxElementsInMemory="10"
546 eternal="false"
547 timeToLiveSeconds="100"
548 overflowToDisk="false">
549 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
550 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
551 </cache>
552
553 <cache name="sampleCache40"
554 maxElementsInMemory="10"
555 eternal="false"
556 timeToLiveSeconds="100"
557 overflowToDisk="false">
558 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
559 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
560 </cache>
561
562 <cache name="sampleCache41"
563 maxElementsInMemory="10"
564 eternal="false"
565 timeToLiveSeconds="100"
566 overflowToDisk="false">
567 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
568 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
569 </cache>
570
571 <cache name="sampleCache42"
572 maxElementsInMemory="10"
573 eternal="false"
574 timeToLiveSeconds="100"
575 overflowToDisk="false">
576 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
577 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
578 </cache>
579
580 <cache name="sampleCache43"
581 maxElementsInMemory="10"
582 eternal="false"
583 timeToLiveSeconds="100"
584 overflowToDisk="false">
585 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
586 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
587 </cache>
588
589 <cache name="sampleCache44"
590 maxElementsInMemory="10"
591 eternal="false"
592 timeToLiveSeconds="100"
593 overflowToDisk="false">
594 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
595 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
596 </cache>
597
598 <cache name="sampleCache45"
599 maxElementsInMemory="10"
600 eternal="false"
601 timeToLiveSeconds="100"
602 overflowToDisk="false">
603 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
604 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
605 </cache>
606
607 <cache name="sampleCache46"
608 maxElementsInMemory="10"
609 eternal="false"
610 timeToLiveSeconds="100"
611 overflowToDisk="false">
612 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
613 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
614 </cache>
615
616 <cache name="sampleCache47"
617 maxElementsInMemory="10"
618 eternal="false"
619 timeToLiveSeconds="100"
620 overflowToDisk="false">
621 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
622 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
623 </cache>
624
625 <cache name="sampleCache48"
626 maxElementsInMemory="10"
627 eternal="false"
628 timeToLiveSeconds="100"
629 overflowToDisk="false">
630 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
631 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
632 </cache>
633
634 <cache name="sampleCache49"
635 maxElementsInMemory="10"
636 eternal="false"
637 timeToLiveSeconds="100"
638 overflowToDisk="false">
639 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
640 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
641 </cache>
642
643 <cache name="sampleCache50"
644 maxElementsInMemory="10"
645 eternal="false"
646 timeToLiveSeconds="100"
647 overflowToDisk="false">
648 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
649 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
650 </cache>
651
652 <cache name="sampleCache51"
653 maxElementsInMemory="10"
654 eternal="false"
655 timeToLiveSeconds="100"
656 overflowToDisk="false">
657 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
658 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
659 </cache>
660
661 <cache name="sampleCache52"
662 maxElementsInMemory="10"
663 eternal="false"
664 timeToLiveSeconds="100"
665 overflowToDisk="false">
666 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
667 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
668 </cache>
669
670 <cache name="sampleCache53"
671 maxElementsInMemory="10"
672 eternal="false"
673 timeToLiveSeconds="100"
674 overflowToDisk="false">
675 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
676 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
677 </cache>
678
679 <cache name="sampleCache54"
680 maxElementsInMemory="10"
681 eternal="false"
682 timeToLiveSeconds="100"
683 overflowToDisk="false">
684 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
685 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
686 </cache>
687
688 <cache name="sampleCache55"
689 maxElementsInMemory="10"
690 eternal="false"
691 timeToLiveSeconds="100"
692 overflowToDisk="false">
693 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
694 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
695 </cache>
696
697 <cache name="sampleCache56"
698 maxElementsInMemory="10"
699 eternal="false"
700 timeToLiveSeconds="100"
701 overflowToDisk="false">
702 <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
703 properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/>
704 </cache>
705
706 <!-- Sample cache named sampleCacheNoIdle, which does not specify the optional idle time -->
707 <cache name="sampleCacheNoIdle"
708 maxElementsInMemory="1000"
709 eternal="false"
710 timeToLiveSeconds="5"
711 overflowToDisk="false"
712 />
713
714 <!-- Sample cache named sampleCacheNotEternalButNoIdleOrExpiry -->
715 <cache name="sampleCacheNotEternalButNoIdleOrExpiry"
716 maxElementsInMemory="1000"
717 eternal="false"
718 overflowToDisk="false"
719 />
720
721 <!-- A cache with short idle and live expiries, suitable for tests -->
722 <cache name="sampleIdlingExpiringCache"
723 maxElementsInMemory="1"
724 eternal="false"
725 timeToIdleSeconds="2"
726 timeToLiveSeconds="5"
727 overflowToDisk="true"
728 />
729
730 <!-- A cache which overflows to disk. The disk store is persistent
731 between cache and VM restarts. The disk expiry thread interval is set to 10 minutes, overriding
732 the default of 2 minutes. -->
733 <cache name="persistentLongExpiryIntervalCache"
734 maxElementsInMemory="500"
735 eternal="false"
736 timeToIdleSeconds="300"
737 timeToLiveSeconds="600"
738 overflowToDisk="true"
739 diskPersistent="true"
740 diskExpiryThreadIntervalSeconds="600"
741 />
742
743 <!-- Page Caches -->
744
745 <cache name="CachedLogin"
746 maxElementsInMemory="10"
747 eternal="false"
748 timeToIdleSeconds="10000"
749 timeToLiveSeconds="10000"
750 overflowToDisk="true"
751 />
752
753 <cache name="FooterPageCache"
754 maxElementsInMemory="10"
755 eternal="false"
756 timeToIdleSeconds="10000"
757 timeToLiveSeconds="10000"
758 overflowToDisk="true"
759 />
760
761 </ehcache>