@Role
public interface CacheManager
| Modifier and Type | Method and Description |
|---|---|
<T> Cache<T> |
createNewCache(CacheConfiguration config)
Find the cache implementation component to use and create a new cache.
|
<T> Cache<T> |
createNewLocalCache(CacheConfiguration config)
Find the local cache implementation component to use and create a new cache.
|
CacheFactory |
getCacheFactory()
Lookup the cache creation component with provided hint return it.
|
CacheFactory |
getLocalCacheFactory()
Lookup the local cache creation component with provided hint return it.
|
CacheFactory getCacheFactory() throws org.xwiki.component.manager.ComponentLookupException
org.xwiki.component.manager.ComponentLookupException - error when searching for cache component.CacheFactory getLocalCacheFactory() throws org.xwiki.component.manager.ComponentLookupException
org.xwiki.component.manager.ComponentLookupException - error when searching for cache component.<T> Cache<T> createNewCache(CacheConfiguration config) throws CacheException
T - the class of the data stored in the cache.config - the cache configuration.Cache.CacheException - error when creating the cache.<T> Cache<T> createNewLocalCache(CacheConfiguration config) throws CacheException
The new cache is based on a local storing implementation (to oppose to distributed cache) and is generally used for not big cache needing very quick access to datas.
T - the class of the data stored in the cache.config - the cache configuration.Cache.CacheException - error when creating the cache.Copyright © 2004–2015 XWiki. All rights reserved.