Debian Codegraph @

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