-
public interface ICacheStoreThe cache store interface, you can implement memory caching and disk caching by yourself
-
-
Method Summary
Modifier and Type Method Description abstract <T> CacheObj<T>getCacheObj(ICacheKey key)Get CacheObj from cache abstract <T> booleanputCacheObj(CacheObj<T> obj)Put into cache abstract <T> booleanputCacheObj(List<CacheObj<T>> objList)abstract booleanremove(ICacheKey key)Delete the cache by key and nullable sub key abstract booleanclearExpired()Delete all expired cache abstract booleanclearAll()Delete all cache abstract Set<ICacheKey>getAllKeys()Get all keys -
-
Method Detail
-
getCacheObj
abstract <T> CacheObj<T> getCacheObj(ICacheKey key)
Get CacheObj from cache
- Parameters:
key- primary key ICacheKey
-
putCacheObj
abstract <T> boolean putCacheObj(CacheObj<T> obj)
Put into cache
- Parameters:
obj- the CacheObj
-
putCacheObj
abstract <T> boolean putCacheObj(List<CacheObj<T>> objList)
-
remove
abstract boolean remove(ICacheKey key)
Delete the cache by key and nullable sub key
- Parameters:
key- primary key ICacheKey
-
clearExpired
abstract boolean clearExpired()
Delete all expired cache
-
clearAll
abstract boolean clearAll()
Delete all cache
-
getAllKeys
abstract Set<ICacheKey> getAllKeys()
Get all keys
-
-
-
-