|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICacheService
Used to retrieve and update the cache.
Note: server which implements this interface provides a local cache service, whereas server which implements IRmiCacheService provides a remote cache service.
Method Summary | |
---|---|
void |
dispose(String cacheName)
Frees the specified cache. |
ICacheElement |
get(String cacheName,
Serializable key)
Returns a cache bean from the specified cache; or null if the key does not exist. |
Map |
getMatching(String cacheName,
String pattern)
Gets multiple items from the cache matching the pattern. |
Map |
getMultiple(String cacheName,
Set keys)
Gets multiple items from the cache based on the given set of keys. |
void |
release()
Frees all caches. |
void |
remove(String cacheName,
Serializable key)
Removes the given key from the specified cache. |
void |
removeAll(String cacheName)
Remove all keys from the sepcified cache. |
void |
update(ICacheElement item)
Puts a cache item to the cache. |
Method Detail |
---|
void update(ICacheElement item) throws ObjectExistsException, IOException
item
-
ObjectExistsException
IOException
ICacheElement get(String cacheName, Serializable key) throws ObjectNotFoundException, IOException
cacheName
- key
-
ObjectNotFoundException
IOException
Map getMultiple(String cacheName, Set keys) throws ObjectNotFoundException, IOException
cacheName
- keys
-
ObjectNotFoundException
IOException
Map getMatching(String cacheName, String pattern) throws IOException
cacheName
- pattern
-
IOException
void remove(String cacheName, Serializable key) throws IOException
cacheName
- key
-
IOException
void removeAll(String cacheName) throws IOException
cacheName
-
IOException
void dispose(String cacheName) throws IOException
cacheName
-
IOException
void release() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |