Class DummyCache
java.lang.Object
com.peterphi.std.guice.common.cached.util.DummyCache
public abstract class DummyCache
extends Object
implements com.google.common.cache.Cache<Object,Object>
A dummy cache which can be used to hook into a cache clear operation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasMap()
void
cleanUp()
com.google.common.collect.ImmutableMap
getAllPresent
(Iterable keys) @Nullable Object
getIfPresent
(Object key) void
invalidate
(Object key) abstract void
void
invalidateAll
(Iterable keys) void
void
long
size()
com.google.common.cache.CacheStats
stats()
-
Constructor Details
-
DummyCache
public DummyCache()
-
-
Method Details
-
getIfPresent
-
get
- Specified by:
get
in interfacecom.google.common.cache.Cache<Object,
Object> - Throws:
ExecutionException
-
put
-
invalidate
-
invalidateAll
public abstract void invalidateAll() -
size
public long size() -
stats
public com.google.common.cache.CacheStats stats() -
asMap
-
cleanUp
public void cleanUp() -
invalidateAll
-
putAll
-
getAllPresent
-