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