com.opensymphony.oscache.base.persistence
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Method Summary | |
|---|---|
void |
clear()
Clear the entire persistent cache (including the root) |
PersistenceListener |
configure(Config config)
Allow the persistence code to initialize itself based on the supplied cache configuration. |
boolean |
isGroupStored(String groupName)
Verify if a group is currently stored in the persistent cache. |
boolean |
isStored(String key)
Verify if an object is currently stored in the persistent cache. |
void |
remove(String key)
Removes an object from the persistent cache |
void |
removeGroup(String groupName)
Removes a group from the persistent cache. |
Object |
retrieve(String key)
Retrieves an object from the persistent cache. |
Set |
retrieveGroup(String groupName)
Retrieves a group from the persistent cache. |
void |
store(String key,
Object obj)
Stores an object in the persistent cache. |
void |
storeGroup(String groupName,
Set group)
Stores a group in the persistent cache. |
| Method Detail |
|---|
boolean isStored(String key) throws CachePersistenceException
key - The cache key of the object to check.
CachePersistenceExceptionboolean isGroupStored(String groupName) throws CachePersistenceException
groupName - The name of the group to check.
CachePersistenceException
void clear()
throws CachePersistenceException
CachePersistenceExceptionPersistenceListener configure(Config config)
void remove(String key) throws CachePersistenceException
CachePersistenceExceptionvoid removeGroup(String groupName) throws CachePersistenceException
groupName - The name of the cache group to remove.
CachePersistenceExceptionObject retrieve(String key) throws CachePersistenceException
key - The unique cache key that maps to the object
being retrieved.
null if no object was found
matching the supplied key.
CachePersistenceExceptionvoid store(String key, Object obj) throws CachePersistenceException
key - The key to uniquely identify this object.obj - The object to persist. Most implementations
of this interface will require this object implements
Serializable.
CachePersistenceExceptionvoid storeGroup(String groupName, Set group) throws CachePersistenceException
groupName - The name of the group to persist.group - A set containing the keys of all the CacheEntry
objects that belong to this group.
CachePersistenceExceptionSet retrieveGroup(String groupName) throws CachePersistenceException
groupName - The name of the group to retrieve.
CacheEntry objects that belong
to this group.
CachePersistenceException
|
OSCache Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||