| 1 |
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../main/config/ehcache.xsd" name="tc" updateCheck="false"> |
| 2 |
|
| 3 |
<defaultCache |
| 4 |
maxElementsInMemory="10" |
| 5 |
eternal="false" |
| 6 |
timeToIdleSeconds="5" |
| 7 |
timeToLiveSeconds="10" |
| 8 |
overflowToDisk="false"> |
| 9 |
<terracotta/> |
| 10 |
</defaultCache> |
| 11 |
|
| 12 |
<!-- A basic clustered LFU cache --> |
| 13 |
<cache name="clustered-1" |
| 14 |
maxElementsInMemory="1000" |
| 15 |
memoryStoreEvictionPolicy="LFU"> |
| 16 |
<terracotta/> |
| 17 |
</cache> |
| 18 |
|
| 19 |
<terracottaConfig> |
| 20 |
<tc-config> |
| 21 |
<servers> |
| 22 |
<server host="server1" name="s1"/> |
| 23 |
<server host="server2" name="s2"/> |
| 24 |
</servers> |
| 25 |
<clients> |
| 26 |
<logs>app/logs-%i</logs> |
| 27 |
</clients> |
| 28 |
</tc-config> |
| 29 |
</terracottaConfig> |
| 30 |
|
| 31 |
</ehcache> |