Interface AdminCache
-
- All Known Implementing Classes:
AdminCacheFileStore
,AdminCacheMemStore
,AdminCacheWeakReference
public interface AdminCache
Simple cache for administration framework.- Author:
- mmares
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(String key)
Checked if content is in the cache.<A> A
get(String key, Class<A> clazz)
Retrieve data from cache.Date
lastUpdated(String key)
Date when was cached data last updated.void
put(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
null
if 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
-
-