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" />
|
2016-03-04 22:52:15 +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"
|
|
|
|
/>
|
2016-03-04 22:52:15 +00:00
|
|
|
|
2011-12-29 04:56:28 +00:00
|
|
|
<!--
|
2015-11-04 08:53:52 +00:00
|
|
|
Short-lived (24 hours) 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"
|
2014-10-29 11:13:54 +00:00
|
|
|
maxElementsOnDisk="80000"
|
2011-12-29 04:56:28 +00:00
|
|
|
eternal="false"
|
2015-11-04 08:53:52 +00:00
|
|
|
timeToIdleSeconds="86400"
|
|
|
|
timeToLiveSeconds="86400"
|
2011-12-29 04:56:28 +00:00
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2016-03-04 22:52:15 +00:00
|
|
|
|
2013-03-17 14:19:11 +00:00
|
|
|
<!--
|
|
|
|
Long-lived (2 weeks) persistent disk cache for web responses
|
|
|
|
-->
|
|
|
|
<cache name="web-datasource-lv2"
|
|
|
|
maxElementsInMemory="200"
|
2014-10-29 11:13:54 +00:00
|
|
|
maxElementsOnDisk="80000"
|
2013-03-17 14:19:11 +00:00
|
|
|
eternal="false"
|
|
|
|
timeToIdleSeconds="1209600"
|
|
|
|
timeToLiveSeconds="1209600"
|
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2016-03-04 22:52:15 +00:00
|
|
|
|
2012-06-18 08:40:05 +00:00
|
|
|
<!--
|
2013-11-29 04:29:56 +00: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 08:40:05 +00:00
|
|
|
-->
|
2013-11-29 04:29:56 +00:00
|
|
|
<cache name="web-datasource-lv3"
|
2015-11-04 08:53:52 +00:00
|
|
|
maxElementsInMemory="100"
|
2014-01-23 18:18:25 +00:00
|
|
|
maxElementsOnDisk="200000"
|
2012-06-18 08:40:05 +00:00
|
|
|
eternal="false"
|
2013-11-29 04:29:56 +00:00
|
|
|
timeToIdleSeconds="5256000"
|
|
|
|
timeToLiveSeconds="5256000"
|
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2016-03-04 22:52:15 +00:00
|
|
|
|
2013-11-29 04:29:56 +00:00
|
|
|
<!--
|
|
|
|
Very long-lived cache (4 months) anime/series lists, movie index, etc
|
|
|
|
-->
|
|
|
|
<cache name="web-persistent-datasource"
|
2014-10-29 11:13:54 +00:00
|
|
|
maxElementsInMemory="100"
|
|
|
|
maxElementsOnDisk="80000"
|
2013-11-29 04:29:56 +00:00
|
|
|
eternal="false"
|
2013-11-03 16:32:40 +00:00
|
|
|
timeToIdleSeconds="10512000"
|
|
|
|
timeToLiveSeconds="10512000"
|
2011-12-29 04:56:28 +00:00
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2016-03-04 22:52:15 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Simple memory cache. Time to live is 4 months.
|
|
|
|
-->
|
|
|
|
<cache name="persistent-memory"
|
|
|
|
maxElementsInMemory="100"
|
|
|
|
maxElementsOnDisk="50000"
|
|
|
|
eternal="false"
|
|
|
|
timeToIdleSeconds="10512000"
|
|
|
|
timeToLiveSeconds="10512000"
|
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
|
|
|
|
2011-12-29 04:56:28 +00:00
|
|
|
<!--
|
2015-11-14 16:12:03 +00:00
|
|
|
Simple memory cache. Time to live is 2 hours.
|
2011-12-29 04:56:28 +00:00
|
|
|
-->
|
2016-03-04 22:52:15 +00:00
|
|
|
<cache name="ephemeral-memory"
|
2014-10-29 11:13:54 +00:00
|
|
|
maxElementsInMemory="50000"
|
2011-12-29 04:56:28 +00:00
|
|
|
eternal="false"
|
|
|
|
timeToIdleSeconds="7200"
|
|
|
|
timeToLiveSeconds="7200"
|
|
|
|
overflowToDisk="false"
|
|
|
|
diskPersistent="false"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2016-03-04 22:52:15 +00:00
|
|
|
|
2009-01-04 18:28:28 +00:00
|
|
|
</ehcache>
|