public interface CacheProvider
Modifier and Type | Method and Description |
---|---|
void |
clear()
Entirely clear the cache content
|
<T> T |
get(java.lang.String key)
Getting an entry on the cache
|
java.util.List<java.lang.String> |
getKeys()
Returns all keys from a given cache
|
void |
remove(java.lang.String key)
Removes an entry in the cache
|
<T> void |
set(java.lang.String key,
T entry)
Adding an entry to the cache
|
void |
setExpiry(int expiry)
Reconfigure the expiry after
|
void |
shutdown()
Shutdown the general cache framework
|
<T> T get(java.lang.String key) throws CacheException
T
- cache entrykey
- key of the cache entryCacheException
- when there is cache issues getting by key<T> void set(java.lang.String key, T entry) throws CacheException
T
- cache entrykey
- key of the cache entryentry
- cache entryCacheException
- when there is cache issues setting an elementvoid remove(java.lang.String key) throws CacheException
key
- key of the cache entryCacheException
- when there is cache issues removing an entryvoid clear()
void shutdown()
java.util.List<java.lang.String> getKeys()
void setExpiry(int expiry)
expiry
- cache time life in minutes