org.xwiki.cache
Interface CacheFactory
- All Known Implementing Classes:
- DefaultCacheFactory
@ComponentRole
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$
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-2011 XWiki. All Rights Reserved.