public class EhCacheService extends AbstractCacheService
Constructor and Description |
---|
EhCacheService() |
Modifier and Type | Method and Description |
---|---|
CacheItem |
get(java.lang.Object cacheIdentifier)
This method returns the cache item from the cache for the specified key.
|
void |
init(java.lang.String tenantId,
java.util.Map<java.lang.String,java.lang.String> csConfigProperties)
This method initializes the ehcache configuration.
|
void |
put(CacheItem cacheItem)
This method stores the cache items in the cache.
|
boolean |
remove(java.lang.Object cacheIdentifier)
This method removes the cache items identified by the cache key
specified.
|
void |
removeAll()
This method removes all cached items.
|
getCacheServiceConfigurationProperties, getTenantId
public void init(java.lang.String tenantId, java.util.Map<java.lang.String,java.lang.String> csConfigProperties) throws com.comergent.api.apps.configurator.ConfiguratorException
init
in interface CacheService
init
in class AbstractCacheService
tenantId
- The tenantIdcsConfigProperties
- The cache service configuration propertiescom.comergent.api.apps.configurator.ConfiguratorException
- If there is an error during initialization.public CacheItem get(java.lang.Object cacheIdentifier)
CacheService
cacheIdentifier
- The cache key.public void put(CacheItem cacheItem)
CacheService
cacheItem
- The cache items to be stored in the cache.public boolean remove(java.lang.Object cacheIdentifier)
CacheService
cacheIdentifier
- The cache key of the cache item to be removed.public void removeAll()
CacheService