Interface AdminCache
-
- All Known Implementing Classes:
AdminCacheFileStore,AdminCacheMemStore,AdminCacheWeakReference
public interface AdminCacheSimple cache for administration framework.- Author:
- mmares
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(String key)Checked if content is in the cache.<A> Aget(String key, Class<A> clazz)Retrieve data from cache.DatelastUpdated(String key)Date when was cached data last updated.voidput(String key, Object data)Puts data to cache.
-
-
-
Method Detail
-
get
<A> A get(String key, Class<A> clazz)
Retrieve data from cache.- Parameters:
key- in the cacheclazz- Cache data will be converted to requested type using appropriateAdminCacheObjectProvider- Returns:
- Cached data converted to requested type or
nullif not cached
-
put
void put(String key, Object data)
Puts data to cache.- Parameters:
key- in the cachedata- Cached data will be converted to raw bytes using appropriateAdminCacheObjectProvider
-
contains
boolean contains(String key)
Checked if content is in the cache.- Parameters:
key- in the cache
-
-