-
public interface ICacheManagerThe cache manager
-
-
Method Summary
Modifier and Type Method Description abstract <T> booleanput(CacheObj<T> obj)Push an CacheObj into cache abstract <T> booleanput(List<CacheObj<T>> objList)abstract booleanremove(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 booleanclearExpired()Delete all expired cache abstract booleanclearAll()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
-
-
-
-