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
-
Method Summary
Modifier and TypeMethodDescriptionasMap()
void
cleanUp()
long
getAllPresent
(Iterable<?> keys) getIfPresent
(Object key) void
invalidate
(Object key) void
void
invalidateAll
(Iterable<?> keys) policy()
void
void
com.github.benmanes.caffeine.cache.stats.CacheStats
stats()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-