Package org.xwiki.cache
Interface CacheFactory
-
@Role public interface CacheFactoryThis interface is implemented by a XWiki cache component implementation to provide cache creation. It's the entry point of the cache component.- Version:
- $Id: 03e6566640fd01a77f8914cf5ce37bc131d6fb0b $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Cache<T>newCache(CacheConfiguration config)Create and return a custom cache.
-
-
-
Method Detail
-
newCache
<T> Cache<T> newCache(CacheConfiguration config) throws CacheException
Create and return a custom cache.- Type Parameters:
T- the class of the data stored in the cache.- Parameters:
config- the cache configuration.- Returns:
- a new
Cache. - Throws:
CacheException- error when creating the cache.
-
-