Package org.fcrepo.storage.ocfl.cache
Class CaffeineCache<K,V>
- java.lang.Object
-
- org.fcrepo.storage.ocfl.cache.CaffeineCache<K,V>
-
-
Constructor Summary
Constructors Constructor Description CaffeineCache(com.github.benmanes.caffeine.cache.Cache cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget(K key, Function<K,V> loader)Retrieves a value from the cache.voidinvalidate(K key)Invalidates the key in the cache.voidput(K key, V value)Inserts a value into the cache.
-
-
-
Method Detail
-
get
public V get(K key, Function<K,V> loader)
Description copied from interface:CacheRetrieves a value from the cache. If it doesn't exist, the loader is called to load the object, which is then cached and returned.
-
put
public void put(K key, V value)
Description copied from interface:CacheInserts a value into the cache.
-
-