Package org.fcrepo.storage.ocfl.cache
Class NoOpCache<K,V>
java.lang.Object
org.fcrepo.storage.ocfl.cache.NoOpCache<K,V>
- All Implemented Interfaces:
Cache<K,V>
Pass-through cache implementation that never caches.
- Author:
- pwinckles
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a value from the cache.voidinvalidate(K key) Invalidates the key in the cache.voidInvalidate the entire cache.voidinvalidateAll(Iterable<K> keys) Invalidates the keys provided in the cache.voidInserts a value into the cache.
-
Constructor Details
-
NoOpCache
public NoOpCache()
-
-
Method Details
-
get
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
Description copied from interface:CacheInserts a value into the cache. -
invalidate
Description copied from interface:CacheInvalidates the key in the cache.- Specified by:
invalidatein interfaceCache<K,V> - Parameters:
key- key
-
invalidateAll
Description copied from interface:CacheInvalidates the keys provided in the cache.- Specified by:
invalidateAllin interfaceCache<K,V> - Parameters:
keys- the keys.
-
invalidateAll
public void invalidateAll()Description copied from interface:CacheInvalidate the entire cache.- Specified by:
invalidateAllin interfaceCache<K,V>
-