2010-01-22 10:19:11 -05:00
|
|
|
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="false">
|
2011-12-28 23:56:28 -05:00
|
|
|
<!--
|
|
|
|
Persistent disk store location
|
2009-01-04 13:28:28 -05:00
|
|
|
-->
|
2012-10-21 12:19:52 -04:00
|
|
|
<diskStore path="ehcache.disk.store.dir" />
|
2009-01-04 13:28:28 -05:00
|
|
|
|
2011-12-28 23:56:28 -05:00
|
|
|
<!--
|
|
|
|
Mandatory Default Cache configuration. These settings will be applied to caches
|
2013-01-18 04:07:35 -05:00
|
|
|
created pragmatically using CacheManager.add(String cacheName)
|
2011-12-28 23:56:28 -05:00
|
|
|
-->
|
|
|
|
<defaultCache
|
|
|
|
maxElementsInMemory="100"
|
|
|
|
eternal="false"
|
|
|
|
timeToIdleSeconds="120"
|
|
|
|
timeToLiveSeconds="120"
|
|
|
|
overflowToDisk="false"
|
|
|
|
diskPersistent="false"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2009-01-04 13:28:28 -05:00
|
|
|
|
2011-12-28 23:56:28 -05:00
|
|
|
<!--
|
2013-03-17 10:19:11 -04:00
|
|
|
Short-lived (2 days) persistent disk cache for web responses
|
2011-12-28 23:56:28 -05:00
|
|
|
-->
|
|
|
|
<cache name="web-datasource"
|
2013-01-10 11:38:17 -05:00
|
|
|
maxElementsInMemory="200"
|
2014-10-29 07:13:54 -04:00
|
|
|
maxElementsOnDisk="80000"
|
2011-12-28 23:56:28 -05:00
|
|
|
eternal="false"
|
2013-02-01 03:08:18 -05:00
|
|
|
timeToIdleSeconds="172800"
|
|
|
|
timeToLiveSeconds="172800"
|
2011-12-28 23:56:28 -05:00
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2012-06-18 04:40:05 -04:00
|
|
|
|
2013-03-17 10:19:11 -04:00
|
|
|
<!--
|
|
|
|
Long-lived (2 weeks) persistent disk cache for web responses
|
|
|
|
-->
|
|
|
|
<cache name="web-datasource-lv2"
|
|
|
|
maxElementsInMemory="200"
|
2014-10-29 07:13:54 -04:00
|
|
|
maxElementsOnDisk="80000"
|
2013-03-17 10:19:11 -04:00
|
|
|
eternal="false"
|
|
|
|
timeToIdleSeconds="1209600"
|
|
|
|
timeToLiveSeconds="1209600"
|
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
|
|
|
|
2012-06-18 04:40:05 -04:00
|
|
|
<!--
|
2013-11-28 23:29:56 -05:00
|
|
|
Long-lived (2 months) persistent disk cache for web responses (that can be updated via If-Modified or If-None-Match)
|
2012-06-18 04:40:05 -04:00
|
|
|
-->
|
2013-11-28 23:29:56 -05:00
|
|
|
<cache name="web-datasource-lv3"
|
2013-11-19 21:53:36 -05:00
|
|
|
maxElementsInMemory="200"
|
2014-01-23 13:18:25 -05:00
|
|
|
maxElementsOnDisk="200000"
|
2012-06-18 04:40:05 -04:00
|
|
|
eternal="false"
|
2013-11-28 23:29:56 -05:00
|
|
|
timeToIdleSeconds="5256000"
|
|
|
|
timeToLiveSeconds="5256000"
|
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Very long-lived cache (4 months) anime/series lists, movie index, etc
|
|
|
|
-->
|
|
|
|
<cache name="web-persistent-datasource"
|
2014-10-29 07:13:54 -04:00
|
|
|
maxElementsInMemory="100"
|
|
|
|
maxElementsOnDisk="80000"
|
2013-11-28 23:29:56 -05:00
|
|
|
eternal="false"
|
2013-11-03 11:32:40 -05:00
|
|
|
timeToIdleSeconds="10512000"
|
|
|
|
timeToLiveSeconds="10512000"
|
2011-12-28 23:56:28 -05:00
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!--
|
2013-01-18 04:07:35 -05:00
|
|
|
Simple memory cache for calculated checksums. Time to live is 2 hours.
|
2011-12-28 23:56:28 -05:00
|
|
|
-->
|
|
|
|
<cache name="checksum"
|
2014-10-29 07:13:54 -04:00
|
|
|
maxElementsInMemory="50000"
|
2011-12-28 23:56:28 -05:00
|
|
|
eternal="false"
|
|
|
|
timeToIdleSeconds="7200"
|
|
|
|
timeToLiveSeconds="7200"
|
|
|
|
overflowToDisk="false"
|
|
|
|
diskPersistent="false"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2012-07-13 08:39:21 -04:00
|
|
|
|
2009-01-04 13:28:28 -05:00
|
|
|
</ehcache>
|