public interface CommonCacheService
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear(String cacheName)
Clear the cache named by cacheName
|
void |
clearAll()
Clear all cache of the service
|
Object |
get(String cacheName,
Object key)
Get a cached object.
|
int |
getCacheSize(String cacheName)
Return the size of the cache with cacheName.
|
List<String> |
getCachesNames()
Get the names of all the caches
|
List<Object> |
getKeys(String cacheName)
Get list of keys on a cache.
|
boolean |
isStopped() |
boolean |
remove(String cacheName,
Object key)
Remove the element according to the cache name and the key
|
void |
store(String cacheName,
Serializable key,
Object value)
Store an object in the cache.
|
void store(String cacheName, Serializable key, 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(String cacheName, 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.Object get(String cacheName, 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.List<Object> getKeys(String cacheName) throws SCacheException
cacheName - The name of the cache on which to get the key listSCacheExceptionboolean clear(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(String cacheName) throws SCacheException
cacheName - The name of cacheSCacheException - if no cache is found with that name.List<String> getCachesNames()
boolean isStopped()
Copyright © 2018 Bonitasoft S.A.. All rights reserved.