-
public interface ICacheManager
The cache manager
-
-
Method Summary
Modifier and Type Method Description abstract <T> boolean
put(CacheObj<T> obj)
Push an CacheObj into cache abstract <T> boolean
put(List<CacheObj<T>> objList)
abstract boolean
remove(ICacheKey key)
Delete the cache by key and nullable sub key abstract <T> CacheObj<T>
getBeforeMaxAge(ICacheKey key)
Get CacheObj before maxAgeTimestamp by primary key and nullable sub key abstract <T> CacheObj<T>
getBeforeMaxStale(ICacheKey key)
Get CacheObj before maxStaleTimestamp by primary key and nullable sub key abstract Set<ICacheKey>
getAllKeys()
Get all keys abstract boolean
clearExpired()
Delete all expired cache abstract boolean
clearAll()
Delete all cache -
-
Method Detail
-
put
abstract <T> boolean put(CacheObj<T> obj)
Push an CacheObj into cache
- Parameters:
obj
- the CacheObj
-
remove
abstract boolean remove(ICacheKey key)
Delete the cache by key and nullable sub key
- Parameters:
key
- primary key ICacheKey
-
getBeforeMaxAge
abstract <T> CacheObj<T> getBeforeMaxAge(ICacheKey key)
Get CacheObj before maxAgeTimestamp by primary key and nullable sub key
- Parameters:
key
- primary key ICacheKey
-
getBeforeMaxStale
abstract <T> CacheObj<T> getBeforeMaxStale(ICacheKey key)
Get CacheObj before maxStaleTimestamp by primary key and nullable sub key
- Parameters:
key
- primary key ICacheKey
-
getAllKeys
abstract Set<ICacheKey> getAllKeys()
Get all keys
-
clearExpired
abstract boolean clearExpired()
Delete all expired cache
-
clearAll
abstract boolean clearAll()
Delete all cache
-
-
-
-