public class EhCacheManager extends Object implements CacheManager
CacheManager interface using Ehcache. The Ehcache configuration is
searched on the class-path and must be provided via setConfigurer(EhCacheConfigurer)
before initializing the manager.| Constructor and Description |
|---|
EhCacheManager() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAdditionalCaches()
Returns a list of all additional caches managed by
CacheManager. |
Cache |
getCache()
Returns the cache managed by this manager.
|
void |
init(Properties properties)
Called to initialize the cache manager from properties.
|
void |
invalidateAdditionalCache(String id)
Invalidates the additional cache with the given id.
|
void |
invalidateMainCache()
Invalidates the whole main cache.
|
void |
setConfigurer(EhCacheConfigurer provider)
Sets the configurer that should be used when initializing the EhCache.
|
void |
shutdown()
Shutdown hook that allows the cache manager to do any kind of clean-up operations.
|
public List<String> getAdditionalCaches()
CacheManager.getAdditionalCaches in interface CacheManagerpublic Cache getCache()
getCache in interface CacheManagerpublic void init(Properties properties)
init in interface CacheManagerproperties - properties object that can contain cache manager specific settings to set up the
managerpublic void invalidateAdditionalCache(String id)
invalidateAdditionalCache in interface CacheManagerid - id of the cachepublic void invalidateMainCache()
invalidateMainCache in interface CacheManagerpublic void setConfigurer(EhCacheConfigurer provider)
init(Properties) method.provider - the provider to be usedpublic void shutdown()
shutdown in interface CacheManagerCopyright © 2019 Communote team. All rights reserved.