public interface CacheManager
Modifier and Type | Method and Description |
---|---|
Object |
get(String key)
Retrieves cached object from the default cache.
|
Object |
get(String cacheName,
Serializable key)
Retrieves cached object.
|
List |
getAllKeys()
Retrieves all keys from the default cache.
|
List |
getAllKeys(String cacheName)
Retrieve all keys from the cache.
|
void |
put(String key,
Serializable obj)
Saves object to the default cache
|
void |
put(String cacheName,
Serializable key,
Serializable obj)
Saves object to the cache.
|
boolean |
remove(String key)
Removes cached object from the default cache
|
boolean |
remove(String cacheName,
Serializable key)
Removes cached object from the cache.
|
void |
removeAll()
Remove all the entries from the default cache.
|
void |
removeAll(String cacheName)
Removes all the entries from the given cache.
|
void put(String cacheName, Serializable key, Serializable obj) throws CacheManagerException
cacheName
- cache namekey
- key of the objectobj
- actual object to be cachedCacheManagerException
- if any problems arise during the operationObject get(String cacheName, Serializable key) throws CacheManagerException, NotInCacheException
cacheName
- cache namekey
- key of the objectCacheManagerException
- if any problems arise during the operationNotInCacheException
- if the key does not existboolean remove(String cacheName, Serializable key) throws CacheManagerException
cacheName
- cache namekey
- key of the objectCacheManagerException
- if any problems arise during the operationvoid removeAll(String cacheName) throws CacheManagerException
cacheName
- cache name.CacheManagerException
- if any problems arise during the operationList getAllKeys(String cacheName) throws CacheManagerException
cacheName
- cache name.CacheManagerException
void put(String key, Serializable obj) throws CacheManagerException
key
- key of the objectobj
- actual object to be cachedCacheManagerException
- if any problems arise during the operationObject get(String key) throws CacheManagerException, NotInCacheException
key
- key of the objectCacheManagerException
- if any problems arise during the operationNotInCacheException
- if the key does not existboolean remove(String key) throws CacheManagerException
key
- key of the objectCacheManagerException
- if any problems arise during the operationvoid removeAll() throws CacheManagerException
CacheManagerException
- if any problems arise during the operationList getAllKeys() throws CacheManagerException
CacheManagerException
- if any problems arise during the operationCopyright © 2013 Atlassian. All Rights Reserved.