Package dev.voidframework.cache.engine
Class BlackHoleCacheEngine
java.lang.Object
dev.voidframework.cache.engine.BlackHoleCacheEngine
- All Implemented Interfaces:
CacheEngine
Black Hole (do nothing) cache implementation.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BlackHoleCacheEngine
public BlackHoleCacheEngine()
-
-
Method Details
-
get
Description copied from interface:CacheEngineRetrieves a value from cache.- Specified by:
getin interfaceCacheEngine- Parameters:
cacheKey- The key- Returns:
- The value, otherwise,
null
-
set
Description copied from interface:CacheEngineSets a value to the cache.- Specified by:
setin interfaceCacheEngine- Parameters:
cacheKey- The keyvalue- The valuetimeToLive- Retention time (in seconds)
-
remove
Description copied from interface:CacheEngineRemoves a value from cache.- Specified by:
removein interfaceCacheEngine- Parameters:
cacheKey- The key
-