2010-01-22 15:19:11 +00:00
|
|
|
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="false">
|
2011-12-29 04:56:28 +00:00
|
|
|
<!--
|
|
|
|
Persistent disk store location
|
2009-01-04 18:28:28 +00:00
|
|
|
-->
|
2012-10-21 16:19:52 +00:00
|
|
|
<diskStore path="ehcache.disk.store.dir" />
|
2009-01-04 18:28:28 +00:00
|
|
|
|
2011-12-29 04:56:28 +00:00
|
|
|
<!--
|
|
|
|
Mandatory Default Cache configuration. These settings will be applied to caches
|
2013-01-18 09:07:35 +00:00
|
|
|
created pragmatically using CacheManager.add(String cacheName)
|
2011-12-29 04:56:28 +00:00
|
|
|
-->
|
|
|
|
<defaultCache
|
|
|
|
maxElementsInMemory="100"
|
|
|
|
eternal="false"
|
|
|
|
timeToIdleSeconds="120"
|
|
|
|
timeToLiveSeconds="120"
|
|
|
|
overflowToDisk="false"
|
|
|
|
diskPersistent="false"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2009-01-04 18:28:28 +00:00
|
|
|
|
2011-12-29 04:56:28 +00:00
|
|
|
<!--
|
2013-01-24 06:43:37 +00:00
|
|
|
Long-lived (5 days) persistent disk cache for web responses
|
2011-12-29 04:56:28 +00:00
|
|
|
-->
|
|
|
|
<cache name="web-datasource"
|
2013-01-10 16:38:17 +00:00
|
|
|
maxElementsInMemory="200"
|
2013-01-18 09:07:35 +00:00
|
|
|
maxElementsOnDisk="10000"
|
2011-12-29 04:56:28 +00:00
|
|
|
eternal="false"
|
2013-01-24 06:43:37 +00:00
|
|
|
timeToIdleSeconds="432000"
|
|
|
|
timeToLiveSeconds="432000"
|
2011-12-29 04:56:28 +00:00
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2012-06-18 08:40:05 +00:00
|
|
|
|
|
|
|
<!--
|
2013-01-18 09:07:35 +00:00
|
|
|
Very long-lived cache (2 months) anime/series lists, movie index, etc
|
2012-06-18 08:40:05 +00:00
|
|
|
-->
|
2013-01-18 09:07:35 +00:00
|
|
|
<cache name="web-persistent-datasource"
|
2012-06-18 08:40:05 +00:00
|
|
|
maxElementsInMemory="50"
|
|
|
|
maxElementsOnDisk="5000"
|
|
|
|
eternal="false"
|
2013-01-18 09:07:35 +00:00
|
|
|
timeToIdleSeconds="5259000"
|
|
|
|
timeToLiveSeconds="5259000"
|
2011-12-29 04:56:28 +00:00
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!--
|
2013-01-18 09:07:35 +00:00
|
|
|
Simple memory cache for calculated checksums. Time to live is 2 hours.
|
2011-12-29 04:56:28 +00:00
|
|
|
-->
|
|
|
|
<cache name="checksum"
|
2013-01-18 09:07:35 +00:00
|
|
|
maxElementsInMemory="5000"
|
2011-12-29 04:56:28 +00:00
|
|
|
eternal="false"
|
|
|
|
timeToIdleSeconds="7200"
|
|
|
|
timeToLiveSeconds="7200"
|
|
|
|
overflowToDisk="false"
|
|
|
|
diskPersistent="false"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2012-07-13 12:39:21 +00:00
|
|
|
|
2009-01-04 18:28:28 +00:00
|
|
|
</ehcache>
|