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: 48f6fc0118ccf4ae9b88d230126a82b20e059cd9 $

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-2011 XWiki. All Rights Reserved.