org.xwiki.cache
Interface CacheFactory
@Role
public interface CacheFactory
This 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 $
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.
Copyright © 2004-2013 XWiki. All Rights Reserved.