|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Unified interface for different cache providers.
Method Summary | |
void |
cancelCacheUpdate(Serializable cacheKey)
Cancels the update being made to the cache. |
void |
flushCache(String[] cacheProfileIds)
Flushes the cache. |
Object |
getFromCache(Serializable cacheKey,
String cacheProfileId)
Retrieves an entry from the cache. |
boolean |
isFailQuietlyEnabled()
Returns the value of the flag that indicates if an exception should thrown or not when an error occurrs when accessing the cache provider. |
void |
putInCache(Serializable cacheKey,
String cacheProfileId,
Object objectToCache)
Stores an object in the cache. |
void |
removeFromCache(Serializable cacheKey,
String cacheProfileId)
Removes an object from the cache. |
Methods inherited from interface org.springframework.beans.factory.InitializingBean |
afterPropertiesSet |
Method Detail |
public void cancelCacheUpdate(Serializable cacheKey)
cacheKey
- the key being used in the cache update.public void flushCache(String[] cacheProfileIds)
cacheProfileIds
- the id(s) of the cache profile(s) that specif(y/ies) what and how
to flush.public Object getFromCache(Serializable cacheKey, String cacheProfileId) throws EntryRetrievalException
cacheKey
- the key under which the entry is stored.cacheProfileId
- the id of the cache profile that specifies how to retrieve an
entry.
EntryRetrievalException
- if an unexpected error takes place when retrieving the entry from
the cache.public boolean isFailQuietlyEnabled()
true
if no exception should be thrown if an error
occurrs when accessing the cache provider.public void putInCache(Serializable cacheKey, String cacheProfileId, Object objectToCache)
cacheKey
- the key under which the object will be stored.cacheProfileId
- the id of the cache profile that specifies how to store an object.objectToCache
- the object to store in the cache.public void removeFromCache(Serializable cacheKey, String cacheProfileId)
cacheKey
- the key under which the object is stored.cacheProfileId
- the id of the cache profile that specifies how to store an object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |