Add caching

This commit is contained in:
Reinhard Pointner 2019-05-04 18:19:33 +07:00
parent a19aa76369
commit 9ee9ed8fbc
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public enum ThumbnailProvider {
}
// per instance cache
private final Cache cache = Cache.getCache("thumbnail_" + ordinal(), CacheType.Persistent);
private final Cache cache = Cache.getCache("thumbnail_" + ordinal(), CacheType.Monthly);
// shared instance for all thumbnail requests
private static final HttpClient http = HttpClient.newHttpClient();