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-01-24 01:43:37 -05:00
|
|
|
Long-lived (5 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"
|
2013-01-18 04:07:35 -05:00
|
|
|
maxElementsOnDisk="10000"
|
2011-12-28 23:56:28 -05:00
|
|
|
eternal="false"
|
2013-01-24 01:43:37 -05:00
|
|
|
timeToIdleSeconds="432000"
|
|
|
|
timeToLiveSeconds="432000"
|
2011-12-28 23:56:28 -05:00
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2012-06-18 04:40:05 -04:00
|
|
|
|
|
|
|
<!--
|
2013-01-18 04:07:35 -05:00
|
|
|
Very long-lived cache (2 months) anime/series lists, movie index, etc
|
2012-06-18 04:40:05 -04:00
|
|
|
-->
|
2013-01-18 04:07:35 -05:00
|
|
|
<cache name="web-persistent-datasource"
|
2012-06-18 04:40:05 -04:00
|
|
|
maxElementsInMemory="50"
|
|
|
|
maxElementsOnDisk="5000"
|
|
|
|
eternal="false"
|
2013-01-18 04:07:35 -05:00
|
|
|
timeToIdleSeconds="5259000"
|
|
|
|
timeToLiveSeconds="5259000"
|
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"
|
2013-01-18 04:07:35 -05:00
|
|
|
maxElementsInMemory="5000"
|
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>
|