public interface ICacheService
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(java.lang.String cacheName)
Frees the specified cache.
|
ICacheElement |
get(java.lang.String cacheName,
java.io.Serializable key)
Returns a cache bean from the specified cache; or null if the key does not exist.
|
java.util.Map |
getMatching(java.lang.String cacheName,
java.lang.String pattern)
Gets multiple items from the cache matching the pattern.
|
java.util.Map |
getMultiple(java.lang.String cacheName,
java.util.Set keys)
Gets multiple items from the cache based on the given set of keys.
|
void |
release()
Frees all caches.
|
void |
remove(java.lang.String cacheName,
java.io.Serializable key)
Removes the given key from the specified cache.
|
void |
removeAll(java.lang.String cacheName)
Remove all keys from the sepcified cache.
|
void |
update(ICacheElement item)
Puts a cache item to the cache.
|
void update(ICacheElement item) throws ObjectExistsException, java.io.IOException
item - ObjectExistsExceptionjava.io.IOExceptionICacheElement get(java.lang.String cacheName, java.io.Serializable key) throws ObjectNotFoundException, java.io.IOException
cacheName - key - ObjectNotFoundExceptionjava.io.IOExceptionjava.util.Map getMultiple(java.lang.String cacheName,
java.util.Set keys)
throws ObjectNotFoundException,
java.io.IOException
cacheName - keys - ObjectNotFoundExceptionjava.io.IOExceptionjava.util.Map getMatching(java.lang.String cacheName,
java.lang.String pattern)
throws java.io.IOException
cacheName - pattern - java.io.IOExceptionvoid remove(java.lang.String cacheName,
java.io.Serializable key)
throws java.io.IOException
cacheName - key - java.io.IOExceptionvoid removeAll(java.lang.String cacheName)
throws java.io.IOException
cacheName - java.io.IOExceptionvoid dispose(java.lang.String cacheName)
throws java.io.IOException
cacheName - java.io.IOExceptionvoid release()
throws java.io.IOException
java.io.IOExceptionCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.