Package thredds.cache
Class DiskPersistedCache.Builder<T1,T2>
java.lang.Object
thredds.cache.DiskPersistedCache.Builder<T1,T2>
- Enclosing class:
- DiskPersistedCache<K,
V>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()maxInMemoryEntities(long maximumMemoryCacheEntities) Set the maximum number of entities in the level 1 cacheSet the name of the cache
-
Method Details
-
named
Set the name of the cache- Parameters:
cacheName- name of the cache- Returns:
- builder
-
maxInMemoryEntities
Set the maximum number of entities in the level 1 cache- Parameters:
maximumMemoryCacheEntities- maximum number of entities before eviction from the level 1 LRU cache- Returns:
- builder
-
build
- Throws:
IOException
-