| 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="java.io.tmpdir/one"/> |
| 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 |
<cacheManagerEventListenerFactory class="net.sf.ehcache.event.TestCacheManagerEventListenerFactory" |
| 36 |
properties="type=counting"/> |
| 37 |
|
| 38 |
|
| 39 |
<!-- |
| 40 |
How a CacheManager, which is part of a cluster, can find other peers. |
| 41 |
There are two peer providers so far: |
| 42 |
|
| 43 |
net.sf.ehcache.distribution.MulticastRMIManagerPeerProviderrovider |
| 44 |
net.sf.ehcache.distribution.RMIManagerPeerProviderrovider |
| 45 |
|
| 46 |
class - The fully qualified class name of the provider |
| 47 |
properties - Properties to be interpreted by the factory |
| 48 |
--> |
| 49 |
<cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" |
| 50 |
properties="peerDiscovery=manual, |
| 51 |
rmiUrls=//localhost:5012/sampleCache19|//localhost:5012/sampleCache18|//localhost:5012/sampleCache49|//localhost:5012/sampleCache17|//localhost:5012/sampleCache16|//localhost:5012/sampleCache48|//localhost:5012/sampleCache15|//localhost:5012/sampleCache47|//localhost:5012/sampleCache46|//localhost:5012/sampleCache13|//localhost:5012/sampleCache45|//localhost:5012/sampleCache12|//localhost:5012/sampleCache44|//localhost:5012/sampleCache43|//localhost:5012/sampleCache11|//localhost:5012/sampleCache10|//localhost:5012/sampleCache42|//localhost:5012/sampleCache41|//localhost:5012/sampleCache40|//localhost:5012/sampleCache9|//localhost:5012/sampleCache8|//localhost:5012/sampleCache7|//localhost:5012/sampleCache6|//localhost:5012/sampleCache5|//localhost:5012/sampleCache2|//localhost:5012/sampleCache1|//localhost:5013/sampleCache1|//localhost:5012/sampleCache39|//localhost:5012/sampleCache38|//localhost:5012/sampleCache37|//localhost:5012/sampleCache36|//localhost:5012/sampleCache35|//localhost:5012/sampleCache34|//localhost:5012/sampleCache33|//localhost:5012/sampleCache32|//localhost:5012/sampleCache31|//localhost:5012/sampleCache30|//localhost:5012/sampleCache29|//localhost:5012/sampleCache28|//localhost:5012/sampleCache27|//localhost:5012/sampleCache26|//localhost:5012/sampleCache25|//localhost:5012/sampleCache24|//localhost:5012/sampleCache56|//localhost:5012/sampleCache55|//localhost:5012/sampleCache23|//localhost:5012/sampleCache22|//localhost:5012/sampleCache54|//localhost:5012/sampleCache53|//localhost:5012/sampleCache21|//localhost:5012/sampleCache20|//localhost:5012/sampleCache52|//localhost:5012/sampleCache51|//localhost:5012/sampleCache50"/> |
| 52 |
|
| 53 |
<!-- |
| 54 |
(Enable for distributed operation) |
| 55 |
|
| 56 |
Specifies a CacheManagerPeerListenerFactory which will be used to create a CacheManagerPeerListener, which |
| 57 |
listens for messages from cache replicators participating in the cluster. |
| 58 |
|
| 59 |
The attributes of cacheManagerPeerListenerFactory are: |
| 60 |
- class - a fully qualified factory class name |
| 61 |
- properties - comma separated properties having meaning only to the factory. |
| 62 |
|
| 63 |
Ehcache comes with a built-in RMI-based distribution system. The listener component is RMICacheManagerPeerListener |
| 64 |
which is configured using RMICacheManagerPeerListenerFactory. It is configured as per the following example: |
| 65 |
|
| 66 |
<cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" |
| 67 |
properties="hostName=localhost, port=5011, socketTimeoutMillis=2000"/> |
| 68 |
|
| 69 |
Valid properties are: |
| 70 |
- hostName (optional) - the hostName of the host the listener is running on. Specify where the host is multihomed |
| 71 |
and you want to control the interface over which cluster messages are received. |
| 72 |
- port (mandatory) - the port the listener listens on. |
| 73 |
- socketTimeoutMillis - the number of seconds client sockets will wait when sending messages to this listener |
| 74 |
until they give up. By default this is 120s. |
| 75 |
|
| 76 |
--> |
| 77 |
<cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" |
| 78 |
properties="hostName=localhost, port=5011, socketTimeoutMillis=2000"/> |
| 79 |
|
| 80 |
|
| 81 |
<!--Default Cache configuration. These will applied to caches programmatically created through |
| 82 |
the CacheManager. |
| 83 |
|
| 84 |
The following attributes are required: |
| 85 |
|
| 86 |
maxElementsInMemory - Sets the maximum number of objects that will be created in memory |
| 87 |
eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the |
| 88 |
element is never expired. |
| 89 |
overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache |
| 90 |
has reached the maxInMemory limit. |
| 91 |
|
| 92 |
The following attributes are optional: |
| 93 |
timeToIdleSeconds - Sets the time to idle for an element before it expires. |
| 94 |
i.e. The maximum amount of time between accesses before an element expires |
| 95 |
Is only used if the element is not eternal. |
| 96 |
Optional attribute. A value of 0 means that an Element can idle for infinity. |
| 97 |
The default value is 0. |
| 98 |
timeToLiveSeconds - Sets the time to live for an element before it expires. |
| 99 |
i.e. The maximum time between creation time and when an element expires. |
| 100 |
Is only used if the element is not eternal. |
| 101 |
Optional attribute. A value of 0 means that and Element can live for infinity. |
| 102 |
The default value is 0. |
| 103 |
diskPersistent - Whether the disk store persists between restarts of the Virtual Machine. |
| 104 |
The default value is false. |
| 105 |
diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value |
| 106 |
is 120 seconds. |
| 107 |
memoryStoreEvictionPolicy - Policy would be enforced upon reaching the maxElementsInMemory limit. Default |
| 108 |
policy is Least Recently Used (specified as LRU). Other policies available - |
| 109 |
First In First Out (specified as FIFO) and Less Frequently Used |
| 110 |
(specified as LFU) |
| 111 |
cacheEventListenerClassNames - A comma separated list of CacheEventListeners. The fully qualified class name of |
| 112 |
the class which implements CacheEventListener is required. |
| 113 |
Registered listeners will be notified of cache events such as Element puts, removes and expiries |
| 114 |
and Cache status changes. The default if unspecified is an empty notifications list |
| 115 |
which does nothing. |
| 116 |
--> |
| 117 |
|
| 118 |
<defaultCache |
| 119 |
maxElementsInMemory="10" |
| 120 |
eternal="false" |
| 121 |
timeToIdleSeconds="5" |
| 122 |
timeToLiveSeconds="10" |
| 123 |
overflowToDisk="true" |
| 124 |
/> |
| 125 |
|
| 126 |
|
| 127 |
<!--Predefined caches. Add your cache configuration settings here. |
| 128 |
If you do not have a configuration for your cache a WARNING will be issued when the |
| 129 |
CacheManager starts |
| 130 |
|
| 131 |
The following attributes are required for defaultCache: |
| 132 |
|
| 133 |
name - Sets the name of the cache. This is used to identify the cache. |
| 134 |
It must be unique. |
| 135 |
maxElementsInMemory - Sets the maximum number of objects that will be created in memory |
| 136 |
eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the |
| 137 |
element is never expired. |
| 138 |
overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache |
| 139 |
has reached the maxInMemory limit. |
| 140 |
|
| 141 |
The following attributes are optional: |
| 142 |
timeToIdleSeconds - Sets the time to idle for an element before it expires. |
| 143 |
i.e. The maximum amount of time between accesses before an element expires |
| 144 |
Is only used if the element is not eternal. |
| 145 |
Optional attribute. A value of 0 means that an Element can idle for infinity. |
| 146 |
The default value is 0. |
| 147 |
timeToLiveSeconds - Sets the time to live for an element before it expires. |
| 148 |
i.e. The maximum time between creation time and when an element expires. |
| 149 |
Is only used if the element is not eternal. |
| 150 |
Optional attribute. A value of 0 means that and Element can live for infinity. |
| 151 |
The default value is 0. |
| 152 |
diskPersistent - Whether the disk store persists between restarts of the Virtual Machine. |
| 153 |
The default value is false. |
| 154 |
diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value |
| 155 |
is 120 seconds. |
| 156 |
memoryStoreEvictionPolicy - Policy would be enforced upon reaching the maxElementsInMemory limit. Default |
| 157 |
policy is Least Recently Used (specified as LRU). Other policies available - |
| 158 |
First In First Out (specified as FIFO) and Less Frequently Used |
| 159 |
(specified as LFU) |
| 160 |
cacheEventListenerClassNames - A comma separated list of CacheEventListeners. The fully qualified class name of |
| 161 |
the class which implements CacheEventListener is required. |
| 162 |
Registered listeners will be notified of cache events such as Element puts, removes and expiries |
| 163 |
and Cache status changes. The default if unspecified is an empty notifications list |
| 164 |
which does nothing. |
| 165 |
--> |
| 166 |
|
| 167 |
|
| 168 |
<!-- Sample cache named sampleCache1 --> |
| 169 |
<cache name="sampleCache1" |
| 170 |
maxElementsInMemory="10" |
| 171 |
eternal="false" |
| 172 |
timeToIdleSeconds="100" |
| 173 |
timeToLiveSeconds="100" |
| 174 |
overflowToDisk="true" |
| 175 |
memoryStoreEvictionPolicy="LRU" |
| 176 |
diskExpiryThreadIntervalSeconds="1" |
| 177 |
> |
| 178 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 179 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 180 |
</cache> |
| 181 |
|
| 182 |
<!-- Sample cache named sampleCache2. --> |
| 183 |
<cache name="sampleCache2" |
| 184 |
maxElementsInMemory="10" |
| 185 |
eternal="false" |
| 186 |
timeToIdleSeconds="100" |
| 187 |
timeToLiveSeconds="100" |
| 188 |
overflowToDisk="false"> |
| 189 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 190 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 191 |
</cache> |
| 192 |
|
| 193 |
|
| 194 |
<!-- Sample cache named sampleCache3. --> |
| 195 |
<cache name="sampleCache3" |
| 196 |
maxElementsInMemory="10" |
| 197 |
eternal="false" |
| 198 |
timeToLiveSeconds="1" |
| 199 |
overflowToDisk="false" |
| 200 |
memoryStoreEvictionPolicy="FIFO" |
| 201 |
/> |
| 202 |
|
| 203 |
<!-- Sample cache named sampleCache4. --> |
| 204 |
<cache name="sampleCache4" |
| 205 |
maxElementsInMemory="10" |
| 206 |
eternal="false" |
| 207 |
timeToLiveSeconds="1" |
| 208 |
overflowToDisk="false" |
| 209 |
memoryStoreEvictionPolicy="LFU" |
| 210 |
/> |
| 211 |
|
| 212 |
<cache name="sampleCache5" |
| 213 |
maxElementsInMemory="10" |
| 214 |
eternal="false" |
| 215 |
timeToLiveSeconds="100" |
| 216 |
overflowToDisk="false"> |
| 217 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 218 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 219 |
</cache> |
| 220 |
|
| 221 |
<cache name="sampleCache6" |
| 222 |
maxElementsInMemory="10" |
| 223 |
eternal="false" |
| 224 |
timeToLiveSeconds="100" |
| 225 |
overflowToDisk="false"> |
| 226 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 227 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 228 |
</cache> |
| 229 |
|
| 230 |
<cache name="sampleCache7" |
| 231 |
maxElementsInMemory="10" |
| 232 |
eternal="false" |
| 233 |
timeToLiveSeconds="100" |
| 234 |
overflowToDisk="false"> |
| 235 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 236 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 237 |
</cache> |
| 238 |
|
| 239 |
|
| 240 |
<cache name="sampleCache8" |
| 241 |
maxElementsInMemory="10" |
| 242 |
eternal="false" |
| 243 |
timeToLiveSeconds="100" |
| 244 |
overflowToDisk="false"> |
| 245 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 246 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 247 |
</cache> |
| 248 |
|
| 249 |
|
| 250 |
<cache name="sampleCache9" |
| 251 |
maxElementsInMemory="10" |
| 252 |
eternal="false" |
| 253 |
timeToLiveSeconds="100" |
| 254 |
overflowToDisk="false"> |
| 255 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 256 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 257 |
</cache> |
| 258 |
|
| 259 |
|
| 260 |
<cache name="sampleCache10" |
| 261 |
maxElementsInMemory="10" |
| 262 |
eternal="false" |
| 263 |
timeToLiveSeconds="100" |
| 264 |
overflowToDisk="false"> |
| 265 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 266 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 267 |
</cache> |
| 268 |
|
| 269 |
|
| 270 |
<cache name="sampleCache11" |
| 271 |
maxElementsInMemory="10" |
| 272 |
eternal="false" |
| 273 |
timeToLiveSeconds="100" |
| 274 |
overflowToDisk="false"> |
| 275 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 276 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 277 |
</cache> |
| 278 |
|
| 279 |
|
| 280 |
<cache name="sampleCache12" |
| 281 |
maxElementsInMemory="10" |
| 282 |
eternal="false" |
| 283 |
timeToLiveSeconds="100" |
| 284 |
overflowToDisk="false"> |
| 285 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 286 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 287 |
</cache> |
| 288 |
|
| 289 |
|
| 290 |
<cache name="sampleCache13" |
| 291 |
maxElementsInMemory="10" |
| 292 |
eternal="false" |
| 293 |
timeToLiveSeconds="100" |
| 294 |
overflowToDisk="false"> |
| 295 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 296 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 297 |
</cache> |
| 298 |
|
| 299 |
|
| 300 |
<cache name="sampleCache15" |
| 301 |
maxElementsInMemory="10" |
| 302 |
eternal="false" |
| 303 |
timeToLiveSeconds="100" |
| 304 |
overflowToDisk="false"> |
| 305 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 306 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 307 |
</cache> |
| 308 |
|
| 309 |
|
| 310 |
<cache name="sampleCache16" |
| 311 |
maxElementsInMemory="10" |
| 312 |
eternal="false" |
| 313 |
timeToLiveSeconds="100" |
| 314 |
overflowToDisk="false"> |
| 315 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 316 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 317 |
</cache> |
| 318 |
|
| 319 |
|
| 320 |
<cache name="sampleCache17" |
| 321 |
maxElementsInMemory="10" |
| 322 |
eternal="false" |
| 323 |
timeToLiveSeconds="100" |
| 324 |
overflowToDisk="false"> |
| 325 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 326 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 327 |
</cache> |
| 328 |
|
| 329 |
|
| 330 |
<cache name="sampleCache18" |
| 331 |
maxElementsInMemory="10" |
| 332 |
eternal="false" |
| 333 |
timeToLiveSeconds="100" |
| 334 |
overflowToDisk="false"> |
| 335 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 336 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 337 |
</cache> |
| 338 |
|
| 339 |
|
| 340 |
<cache name="sampleCache19" |
| 341 |
maxElementsInMemory="10" |
| 342 |
eternal="false" |
| 343 |
timeToLiveSeconds="100" |
| 344 |
overflowToDisk="false"> |
| 345 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 346 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 347 |
</cache> |
| 348 |
|
| 349 |
|
| 350 |
<cache name="sampleCache20" |
| 351 |
maxElementsInMemory="10" |
| 352 |
eternal="false" |
| 353 |
timeToLiveSeconds="100" |
| 354 |
overflowToDisk="false"> |
| 355 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 356 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 357 |
</cache> |
| 358 |
|
| 359 |
|
| 360 |
<cache name="sampleCache21" |
| 361 |
maxElementsInMemory="10" |
| 362 |
eternal="false" |
| 363 |
timeToLiveSeconds="100" |
| 364 |
overflowToDisk="false"> |
| 365 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 366 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 367 |
</cache> |
| 368 |
|
| 369 |
|
| 370 |
<cache name="sampleCache22" |
| 371 |
maxElementsInMemory="10" |
| 372 |
eternal="false" |
| 373 |
timeToLiveSeconds="100" |
| 374 |
overflowToDisk="false"> |
| 375 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 376 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 377 |
</cache> |
| 378 |
|
| 379 |
|
| 380 |
<cache name="sampleCache23" |
| 381 |
maxElementsInMemory="10" |
| 382 |
eternal="false" |
| 383 |
timeToLiveSeconds="100" |
| 384 |
overflowToDisk="false"> |
| 385 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 386 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 387 |
</cache> |
| 388 |
|
| 389 |
|
| 390 |
<cache name="sampleCache24" |
| 391 |
maxElementsInMemory="10" |
| 392 |
eternal="false" |
| 393 |
timeToLiveSeconds="100" |
| 394 |
overflowToDisk="false"> |
| 395 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 396 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 397 |
</cache> |
| 398 |
|
| 399 |
|
| 400 |
<cache name="sampleCache25" |
| 401 |
maxElementsInMemory="10" |
| 402 |
eternal="false" |
| 403 |
timeToLiveSeconds="100" |
| 404 |
overflowToDisk="false"> |
| 405 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 406 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 407 |
</cache> |
| 408 |
|
| 409 |
|
| 410 |
<cache name="sampleCache26" |
| 411 |
maxElementsInMemory="10" |
| 412 |
eternal="false" |
| 413 |
timeToLiveSeconds="100" |
| 414 |
overflowToDisk="false"> |
| 415 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 416 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 417 |
</cache> |
| 418 |
|
| 419 |
|
| 420 |
<cache name="sampleCache27" |
| 421 |
maxElementsInMemory="10" |
| 422 |
eternal="false" |
| 423 |
timeToLiveSeconds="100" |
| 424 |
overflowToDisk="false"> |
| 425 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 426 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 427 |
</cache> |
| 428 |
|
| 429 |
|
| 430 |
<cache name="sampleCache28" |
| 431 |
maxElementsInMemory="10" |
| 432 |
eternal="false" |
| 433 |
timeToLiveSeconds="100" |
| 434 |
overflowToDisk="false"> |
| 435 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 436 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 437 |
</cache> |
| 438 |
|
| 439 |
<cache name="sampleCache29" |
| 440 |
maxElementsInMemory="10" |
| 441 |
eternal="false" |
| 442 |
timeToLiveSeconds="100" |
| 443 |
overflowToDisk="false"> |
| 444 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 445 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 446 |
</cache> |
| 447 |
|
| 448 |
<cache name="sampleCache30" |
| 449 |
maxElementsInMemory="10" |
| 450 |
eternal="false" |
| 451 |
timeToLiveSeconds="100" |
| 452 |
overflowToDisk="false"> |
| 453 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 454 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 455 |
</cache> |
| 456 |
|
| 457 |
<cache name="sampleCache31" |
| 458 |
maxElementsInMemory="10" |
| 459 |
eternal="false" |
| 460 |
timeToLiveSeconds="100" |
| 461 |
overflowToDisk="false"> |
| 462 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 463 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 464 |
</cache> |
| 465 |
|
| 466 |
<cache name="sampleCache32" |
| 467 |
maxElementsInMemory="10" |
| 468 |
eternal="false" |
| 469 |
timeToLiveSeconds="100" |
| 470 |
overflowToDisk="false"> |
| 471 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 472 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 473 |
</cache> |
| 474 |
|
| 475 |
<cache name="sampleCache33" |
| 476 |
maxElementsInMemory="10" |
| 477 |
eternal="false" |
| 478 |
timeToLiveSeconds="100" |
| 479 |
overflowToDisk="false"> |
| 480 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 481 |
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 482 |
</cache> |
| 483 |
|
| 484 |
<cache name="sampleCache34" |
| 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="sampleCache35" |
| 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="sampleCache36" |
| 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="sampleCache37" |
| 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="sampleCache38" |
| 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="sampleCache39" |
| 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="sampleCache40" |
| 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="sampleCache41" |
| 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="sampleCache42" |
| 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="sampleCache43" |
| 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="sampleCache44" |
| 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="sampleCache45" |
| 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="sampleCache46" |
| 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="sampleCache47" |
| 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="sampleCache48" |
| 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="sampleCache49" |
| 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="sampleCache50" |
| 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="sampleCache51" |
| 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="sampleCache52" |
| 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="sampleCache53" |
| 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="sampleCache54" |
| 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="sampleCache55" |
| 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="sampleCache56" |
| 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 |
<!-- Sample cache named sampleCacheNoIdle, which does not specify the optional idle time --> |
| 692 |
<cache name="sampleCacheNoIdle" |
| 693 |
maxElementsInMemory="1000" |
| 694 |
eternal="false" |
| 695 |
timeToLiveSeconds="5" |
| 696 |
overflowToDisk="false" |
| 697 |
/> |
| 698 |
|
| 699 |
<!-- Sample cache named sampleCacheNotEternalButNoIdleOrExpiry --> |
| 700 |
<cache name="sampleCacheNotEternalButNoIdleOrExpiry" |
| 701 |
maxElementsInMemory="1000" |
| 702 |
eternal="false" |
| 703 |
overflowToDisk="false" |
| 704 |
/> |
| 705 |
|
| 706 |
<!-- A cache with short idle and live expiries, suitable for tests --> |
| 707 |
<cache name="sampleIdlingExpiringCache" |
| 708 |
maxElementsInMemory="1" |
| 709 |
eternal="false" |
| 710 |
timeToIdleSeconds="2" |
| 711 |
timeToLiveSeconds="5" |
| 712 |
overflowToDisk="true" |
| 713 |
/> |
| 714 |
|
| 715 |
<!-- A cache which overflows to disk. The disk store is persistent |
| 716 |
between cache and VM restarts. The disk expiry thread interval is set to 10 minutes, overriding |
| 717 |
the default of 2 minutes. --> |
| 718 |
<cache name="persistentLongExpiryIntervalCache" |
| 719 |
maxElementsInMemory="500" |
| 720 |
eternal="false" |
| 721 |
timeToIdleSeconds="300" |
| 722 |
timeToLiveSeconds="600" |
| 723 |
overflowToDisk="true" |
| 724 |
diskPersistent="true" |
| 725 |
diskExpiryThreadIntervalSeconds="600" |
| 726 |
/> |
| 727 |
|
| 728 |
<!-- Page Caches --> |
| 729 |
|
| 730 |
<cache name="CachedLogin" |
| 731 |
maxElementsInMemory="10" |
| 732 |
eternal="false" |
| 733 |
timeToIdleSeconds="10000" |
| 734 |
timeToLiveSeconds="10000" |
| 735 |
overflowToDisk="true" |
| 736 |
/> |
| 737 |
|
| 738 |
<cache name="FooterPageCache" |
| 739 |
maxElementsInMemory="10" |
| 740 |
eternal="false" |
| 741 |
timeToIdleSeconds="10000" |
| 742 |
timeToLiveSeconds="10000" |
| 743 |
overflowToDisk="true" |
| 744 |
/> |
| 745 |
|
| 746 |
</ehcache> |