Package net.bluemind.core.utils
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()longgetAllPresent(Iterable<?> keys) getIfPresent(Object key) voidinvalidate(Object key) voidvoidinvalidateAll(Iterable<?> 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 
- 
Constructor Details
- 
NoopCache
public NoopCache() 
 - 
 - 
Method Details
- 
getIfPresent
 - 
get
 - 
getAllPresent
 - 
put
 - 
putAll
 - 
invalidate
 - 
invalidateAll
 - 
invalidateAll
public void invalidateAll() - 
estimatedSize
public long estimatedSize() - 
stats
public com.github.benmanes.caffeine.cache.stats.CacheStats stats() - 
asMap
 - 
cleanUp
public void cleanUp() - 
policy
 
 -