public class CacheServiceImpl extends Object implements CacheService
| Constructor and Description |
|---|
CacheServiceImpl(InitParams params) |
CacheServiceImpl(InitParams params,
ExoCacheFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExoCacheConfig(ComponentPlugin plugin) |
void |
addExoCacheConfig(ExoCacheConfigPlugin plugin)
Adds a cache configuration plugin.
|
Collection<ExoCache<? extends Serializable,?>> |
getAllCacheInstances()
Returns a collection of all the cache instances.
|
<K extends Serializable,V> |
getCacheInstance(String region)
Returns a specific cache instance.
|
public CacheServiceImpl(InitParams params) throws Exception
Exceptionpublic CacheServiceImpl(InitParams params, ExoCacheFactory factory) throws Exception
Exceptionpublic void addExoCacheConfig(ComponentPlugin plugin)
public void addExoCacheConfig(ExoCacheConfigPlugin plugin)
CacheServiceaddExoCacheConfig in interface CacheServiceplugin - the pluginpublic <K extends Serializable,V> ExoCache<K,V> getCacheInstance(String region)
CacheServicegetCacheInstance in interface CacheServiceK - the key typeV - the value typeregion - the cache regionpublic Collection<ExoCache<? extends Serializable,?>> getAllCacheInstances()
CacheServicegetAllCacheInstances in interface CacheServiceCopyright © 2015 eXo Platform SAS. All Rights Reserved.