org.xwiki.cache.oscache.internal
Class OSCacheCacheConfiguration

java.lang.Object
  extended by org.xwiki.cache.util.AbstractCacheConfigurationLoader
      extended by org.xwiki.cache.oscache.internal.OSCacheCacheConfiguration

public class OSCacheCacheConfiguration
extends AbstractCacheConfigurationLoader

Convert XWiki cache configuration into OSCache configuration.

Version:
$Id$

Constructor Summary
OSCacheCacheConfiguration(Container container, CacheConfiguration configuration, java.lang.String defaultPropsId)
           
 
Method Summary
 java.lang.String getName()
           
 java.util.Properties getOSCacheProperties()
           
 int getTimeToLive()
           
 
Methods inherited from class org.xwiki.cache.util.AbstractCacheConfigurationLoader
createTempDir, getCacheConfiguration, getDefaultPropsId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSCacheCacheConfiguration

public OSCacheCacheConfiguration(Container container,
                                 CacheConfiguration configuration,
                                 java.lang.String defaultPropsId)
Parameters:
container - the container used to access configuration files.
configuration - the XWiki cache API configuration.
defaultPropsId - the default configuration identifier used to load cache configuration file.
Method Detail

getOSCacheProperties

public java.util.Properties getOSCacheProperties()
Returns:
the OSCAche configuration.

getTimeToLive

public int getTimeToLive()
Returns:
the maximum duration a cache entry can exists without any modification.

getName

public java.lang.String getName()
Returns:
the name of the cache.


Copyright © 2004-2011 XWiki. All Rights Reserved.