| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 |
xsi:noNamespaceSchemaLocation="../../main/config/ehcache.xsd"> |
| 5 |
|
| 6 |
<!-- Disable for test ehcache.xml. Should go to the same place. --> |
| 7 |
<diskStore path="java.io.tmpdir"/> |
| 8 |
|
| 9 |
<defaultCache |
| 10 |
maxElementsInMemory="10" |
| 11 |
eternal="false" |
| 12 |
timeToIdleSeconds="5" |
| 13 |
timeToLiveSeconds="10" |
| 14 |
overflowToDisk="false" |
| 15 |
/> |
| 16 |
|
| 17 |
<cache name="writeThroughCache1" eternal="false" maxElementsInMemory="1000" overflowToDisk="false"/> |
| 18 |
|
| 19 |
<cache name="writeThroughCache2" eternal="false" maxElementsInMemory="1000" overflowToDisk="false"> |
| 20 |
<cacheWriter/> |
| 21 |
</cache> |
| 22 |
|
| 23 |
<cache name="writeThroughCache3" eternal="false" maxElementsInMemory="1000" overflowToDisk="false"> |
| 24 |
<cacheWriter writeMode="write-through" notifyListenersOnException="true" maxWriteDelay="30" |
| 25 |
rateLimitPerSecond="10" writeCoalescing="true" writeBatching="true" writeBatchSize="8" |
| 26 |
retryAttempts="20" retryAttemptDelaySeconds="60"/> |
| 27 |
</cache> |
| 28 |
|
| 29 |
<cache name="writeThroughCache4" eternal="false" maxElementsInMemory="1000" overflowToDisk="false"> |
| 30 |
<cacheWriter writeMode="write-through" notifyListenersOnException="false" maxWriteDelay="0" |
| 31 |
rateLimitPerSecond="0" writeCoalescing="false" writeBatching="false" writeBatchSize="1" |
| 32 |
retryAttempts="0" retryAttemptDelaySeconds="0"> |
| 33 |
<cacheWriterFactory class="net.sf.ehcache.writer.TestCacheWriterFactory"/> |
| 34 |
</cacheWriter> |
| 35 |
</cache> |
| 36 |
|
| 37 |
<cache name="writeBehindCache5" eternal="false" maxElementsInMemory="1000" overflowToDisk="false"> |
| 38 |
<cacheWriter writeMode="write-behind" notifyListenersOnException="true" maxWriteDelay="8" rateLimitPerSecond="5" |
| 39 |
writeCoalescing="true" writeBatching="false" writeBatchSize="1" |
| 40 |
retryAttempts="2" retryAttemptDelaySeconds="2"> |
| 41 |
<cacheWriterFactory class="net.sf.ehcache.writer.TestCacheWriterFactory" |
| 42 |
properties="just.some.property=test; another.property=test2" propertySeparator=";"/> |
| 43 |
</cacheWriter> |
| 44 |
</cache> |
| 45 |
|
| 46 |
<cache name="writeThroughCacheXml" eternal="false" maxElementsInMemory="1000" overflowToDisk="false"> |
| 47 |
<cacheWriter> |
| 48 |
<cacheWriterFactory class="net.sf.ehcache.writer.TestCacheWriterFactory"/> |
| 49 |
</cacheWriter> |
| 50 |
</cache> |
| 51 |
|
| 52 |
|
| 53 |
<cache name="writeThroughCacheXmlProperties" eternal="false" maxElementsInMemory="1000" overflowToDisk="false"> |
| 54 |
<cacheWriter> |
| 55 |
<cacheWriterFactory class="net.sf.ehcache.writer.TestCacheWriterFactory" properties="key.prefix=pre, key.suffix=suff"/> |
| 56 |
</cacheWriter> |
| 57 |
</cache> |
| 58 |
|
| 59 |
<cache name="writeThroughCacheJavaRegistration" eternal="false" maxElementsInMemory="1000" overflowToDisk="false"/> |
| 60 |
</ehcache> |