public interface CommonCacheService
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear(java.lang.String cacheName)
Clear the cache named by cacheName
|
void |
clearAll()
Clear all cache of the service
|
java.lang.Object |
get(java.lang.String cacheName,
java.lang.Object key)
Get a cached object.
|
int |
getCacheSize(java.lang.String cacheName)
Return the size of the cache with cacheName.
|
java.util.List<java.lang.String> |
getCachesNames()
Get the names of all the caches
|
java.util.List<java.lang.Object> |
getKeys(java.lang.String cacheName)
Get list of keys on a cache.
|
boolean |
isStopped() |
boolean |
remove(java.lang.String cacheName,
java.lang.Object key)
Remove the element according to the cache name and the key
|
void |
store(java.lang.String cacheName,
java.io.Serializable key,
java.lang.Object value)
Store an object in the cache.
|
void store(java.lang.String cacheName,
java.io.Serializable key,
java.lang.Object value)
throws SCacheException
cacheName - The name of the cache in which the object must be storedkey - The key that will allow to retrieve the objectvalue - The object to storeSCacheException - Error thrown if has exceptions during the cache store.boolean remove(java.lang.String cacheName,
java.lang.Object key)
throws SCacheException
cacheName - key - The name of the cache where the object must be stored
The key that will allow to retrieve the objectSCacheException - Error thrown if has exceptions during the cache remove.java.lang.Object get(java.lang.String cacheName,
java.lang.Object key)
throws SCacheException
cacheName - The name of the cache on which to get the objectkey - The key that is used to store the objectSCacheException - Error thrown if has exceptions during the cache object get.java.util.List<java.lang.Object> getKeys(java.lang.String cacheName)
throws SCacheException
cacheName - The name of the cache on which to get the key listSCacheExceptionboolean clear(java.lang.String cacheName)
throws SCacheException
cacheName - The name of the cache to clearSCacheException - Error thrown if has exceptions during the cache clear.void clearAll()
throws SCacheException
SCacheException - Error thrown if has exceptions during the cache clear.int getCacheSize(java.lang.String cacheName)
throws SCacheException
cacheName - The name of cacheSCacheException - if no cache is found with that name.java.util.List<java.lang.String> getCachesNames()
boolean isStopped()