Class NoopCache<K,V>
java.lang.Object
net.bluemind.core.utils.NoopCache<K,V>
- Type Parameters:
K-V-
- All Implemented Interfaces:
com.github.benmanes.caffeine.cache.Cache<K,V>
A cache implementation that remains an empty collection and returns null when
trying to access records, only the get function
V get(K key, Function<? super K, ? extends V> mappingFunction) will
execute the mapping function if it exists-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()voidcleanUp()longgetAll(Iterable<? extends K> keys, Function<? super Set<? extends K>, ? extends Map<? extends K, ? extends V>> mappingFunction) getAllPresent(Iterable<? extends K> keys) getIfPresent(Object key) voidinvalidate(K key) voidvoidinvalidateAll(Iterable<? extends K> keys) policy()voidvoidcom.github.benmanes.caffeine.cache.stats.CacheStatsstats()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.benmanes.caffeine.cache.Cache
getAll, getAllPresent, invalidate, invalidateAll