|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role public interface CacheManager
Choose the cache component to use for cache or local cache.
| Method Summary | ||
|---|---|---|
|
createNewCache(CacheConfiguration config)
Find the cache implementation component to use and create a new cache. |
|
|
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. |
|
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||