org.xwiki.cache
Interface CacheFactory


@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$

Method Summary
<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.


Copyright © 2004-2012 XWiki. All Rights Reserved.