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
- ObjectExistsException
java.io.IOException
ICacheElement get(java.lang.String cacheName, java.io.Serializable key) throws ObjectNotFoundException, java.io.IOException
cacheName
- key
- ObjectNotFoundException
java.io.IOException
java.util.Map getMultiple(java.lang.String cacheName, java.util.Set keys) throws ObjectNotFoundException, java.io.IOException
cacheName
- keys
- ObjectNotFoundException
java.io.IOException
java.util.Map getMatching(java.lang.String cacheName, java.lang.String pattern) throws java.io.IOException
cacheName
- pattern
- java.io.IOException
void remove(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
cacheName
- key
- java.io.IOException
void removeAll(java.lang.String cacheName) throws java.io.IOException
cacheName
- java.io.IOException
void dispose(java.lang.String cacheName) throws java.io.IOException
cacheName
- java.io.IOException
void release() throws java.io.IOException
java.io.IOException
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.