* use disk-persistent (2 days) cache for TheTVDB

This commit is contained in:
Reinhard Pointner 2011-11-13 08:14:54 +00:00
parent 6c415e4113
commit a0d09d2c83
2 changed files with 9 additions and 9 deletions

View File

@ -118,17 +118,17 @@
memoryStoreEvictionPolicy="LRU"
/>
<!--
Short-lived memory cache for web responses. Time to live is 10 min. This cache is used by TheTVDBClient.
Short-lived (48 hours) persistent cache for web responses.
-->
<cache name="web"
<cache name="web-datasource"
maxElementsInMemory="120"
maxElementsOnDisk="120"
eternal="false"
timeToIdleSeconds="600"
timeToLiveSeconds="600"
overflowToDisk="false"
diskPersistent="false"
timeToIdleSeconds="172800"
timeToLiveSeconds="172800"
overflowToDisk="true"
diskPersistent="true"
memoryStoreEvictionPolicy="LRU"
/>
@ -136,7 +136,7 @@
Very long-lived cache (one month!) anime/series list and episode information.
-->
<cache name="web-persistent-datasource"
maxElementsInMemory="20"
maxElementsInMemory="40"
maxElementsOnDisk="240"
eternal="false"
timeToIdleSeconds="2628000"

View File

@ -43,7 +43,7 @@ public class TheTVDBClient extends AbstractEpisodeListProvider {
private final Map<MirrorType, String> mirrors = new EnumMap<MirrorType, String>(MirrorType.class);
private final TheTVDBCache cache = new TheTVDBCache(CacheManager.getInstance().getCache("web"));
private final TheTVDBCache cache = new TheTVDBCache(CacheManager.getInstance().getCache("web-datasource"));
public TheTVDBClient(String apikey) {