Class ExoCacheFactoryImpl
- java.lang.Object
-
- org.exoplatform.services.cache.impl.memcached.ExoCacheFactoryImpl
-
- All Implemented Interfaces:
org.exoplatform.services.cache.ExoCacheFactory,org.picocontainer.Startable
public class ExoCacheFactoryImpl extends Object implements org.exoplatform.services.cache.ExoCacheFactory, org.picocontainer.Startable
This class is the Memcached implementation of theExoCacheFactory- Version:
- $Id$
- Author:
- Nicolas Filotto
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECTION_FACTORY_CREATORThe parameter key that defines theConnectionFactoryCreatorstatic StringDEFAULT_EXPIRATION_TIMEOUTThe parameter key that defines the default expiration timeoutstatic longDEFAULT_EXPIRATION_TIMEOUT_VALUEThe default expiration timeout, set to 15 minutesstatic StringMEMCACHED_LOCATIONSThe parameter key that defines the memcache locations
-
Constructor Summary
Constructors Constructor Description ExoCacheFactoryImpl(org.exoplatform.container.ExoContainerContext ctx, org.exoplatform.container.xml.InitParams params)The default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.exoplatform.services.cache.ExoCachecreateCache(org.exoplatform.services.cache.ExoCacheConfig config)voidstart()voidstop()
-
-
-
Field Detail
-
CONNECTION_FACTORY_CREATOR
public static final String CONNECTION_FACTORY_CREATOR
The parameter key that defines theConnectionFactoryCreator- See Also:
- Constant Field Values
-
MEMCACHED_LOCATIONS
public static final String MEMCACHED_LOCATIONS
The parameter key that defines the memcache locations- See Also:
- Constant Field Values
-
DEFAULT_EXPIRATION_TIMEOUT
public static final String DEFAULT_EXPIRATION_TIMEOUT
The parameter key that defines the default expiration timeout- See Also:
- Constant Field Values
-
DEFAULT_EXPIRATION_TIMEOUT_VALUE
public static final long DEFAULT_EXPIRATION_TIMEOUT_VALUE
The default expiration timeout, set to 15 minutes- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExoCacheFactoryImpl
public ExoCacheFactoryImpl(org.exoplatform.container.ExoContainerContext ctx, org.exoplatform.container.xml.InitParams params) throws IOExceptionThe default constructor- Throws:
IOException
-
-
Method Detail
-
createCache
public org.exoplatform.services.cache.ExoCache createCache(org.exoplatform.services.cache.ExoCacheConfig config) throws org.exoplatform.services.cache.ExoCacheInitException- Specified by:
createCachein interfaceorg.exoplatform.services.cache.ExoCacheFactory- Throws:
org.exoplatform.services.cache.ExoCacheInitException
-
start
public void start()
- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.picocontainer.Startable
-
-