Package net.datenwerke.rs.resultcache
Class ResultCacheServiceImpl
java.lang.Object
net.datenwerke.rs.resultcache.ResultCacheServiceImpl
- All Implemented Interfaces:
ResultCacheService
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToResultCache(ResultCacheKey cacheKey, CacheableResult result) voidflush()getCachedResult(ResultCacheKey cacheKey) voidvoidremoveFromResultCache(ResultCacheKey cacheKey)
-
Constructor Details
-
ResultCacheServiceImpl
public ResultCacheServiceImpl()
-
-
Method Details
-
maintainCache
public void maintainCache()- Specified by:
maintainCachein interfaceResultCacheService
-
addToResultCache
- Specified by:
addToResultCachein interfaceResultCacheService
-
removeFromResultCache
- Specified by:
removeFromResultCachein interfaceResultCacheService
-
flush
public void flush()- Specified by:
flushin interfaceResultCacheService
-
getCachedResult
- Specified by:
getCachedResultin interfaceResultCacheService
-