2010-01-22 10:19:11 -05:00
|
|
|
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="false">
|
2009-01-04 13:28:28 -05:00
|
|
|
|
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
|
|
|
|
created pragmatically using CacheManager.add(String cacheName).
|
|
|
|
-->
|
|
|
|
<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
|
|
|
<!--
|
2011-11-13 03:14:54 -05:00
|
|
|
Short-lived (48 hours) persistent cache for web responses.
|
2011-12-28 23:56:28 -05:00
|
|
|
-->
|
|
|
|
<cache name="web-datasource"
|
|
|
|
maxElementsInMemory="120"
|
2012-07-26 07:14:31 -04:00
|
|
|
maxElementsOnDisk="1200"
|
2011-12-28 23:56:28 -05:00
|
|
|
eternal="false"
|
|
|
|
timeToIdleSeconds="172800"
|
|
|
|
timeToLiveSeconds="172800"
|
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2012-06-18 04:40:05 -04:00
|
|
|
|
|
|
|
<!--
|
2012-07-24 15:54:26 -04:00
|
|
|
Long-lived (1 week) persistent disk cache for full web pages
|
2012-06-18 04:40:05 -04:00
|
|
|
-->
|
|
|
|
<cache name="web-data-diskcache"
|
|
|
|
maxElementsInMemory="50"
|
|
|
|
maxElementsOnDisk="5000"
|
|
|
|
eternal="false"
|
2012-07-24 15:54:26 -04:00
|
|
|
timeToIdleSeconds="604800"
|
|
|
|
timeToLiveSeconds="604800"
|
2012-06-18 04:40:05 -04:00
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
2011-12-28 23:56:28 -05:00
|
|
|
|
2009-10-28 11:09:47 -04:00
|
|
|
<!--
|
2011-08-05 02:37:30 -04:00
|
|
|
Very long-lived cache (one month!) anime/series list and episode information.
|
2011-12-28 23:56:28 -05:00
|
|
|
-->
|
|
|
|
<cache name="web-persistent-datasource"
|
|
|
|
maxElementsInMemory="40"
|
|
|
|
maxElementsOnDisk="240"
|
|
|
|
eternal="false"
|
|
|
|
timeToIdleSeconds="2628000"
|
|
|
|
timeToLiveSeconds="2628000"
|
|
|
|
overflowToDisk="true"
|
|
|
|
diskPersistent="true"
|
|
|
|
memoryStoreEvictionPolicy="LRU"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Simple memory cache for calculated checksums. Time to live is 2 hours. This cache is used in EpisodeFormatBindingBean
|
|
|
|
-->
|
|
|
|
<cache name="checksum"
|
|
|
|
maxElementsInMemory="4200"
|
|
|
|
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>
|