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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()voidcleanUp()com.google.common.collect.ImmutableMapgetAllPresent(Iterable keys) @Nullable ObjectgetIfPresent(Object key) voidinvalidate(Object key) abstract voidvoidinvalidateAll(Iterable keys) voidvoidlongsize()com.google.common.cache.CacheStatsstats()
-
Constructor Details
-
DummyCache
public DummyCache()
-
-
Method Details
-
getIfPresent
-
get
- Specified by:
getin 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
-