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 the
ExoCacheFactory- Version:
- $Id$
- Author:
- Nicolas Filotto
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe parameter key that defines theConnectionFactoryCreatorstatic final StringThe parameter key that defines the default expiration timeoutstatic final longThe default expiration timeout, set to 15 minutesstatic final StringThe parameter key that defines the memcache locations -
Constructor Summary
ConstructorsConstructorDescriptionExoCacheFactoryImpl(org.exoplatform.container.ExoContainerContext ctx, org.exoplatform.container.xml.InitParams params) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.exoplatform.services.cache.ExoCachecreateCache(org.exoplatform.services.cache.ExoCacheConfig config) voidstart()voidstop()
-
Field Details
-
CONNECTION_FACTORY_CREATOR
The parameter key that defines theConnectionFactoryCreator- See Also:
-
MEMCACHED_LOCATIONS
The parameter key that defines the memcache locations- See Also:
-
DEFAULT_EXPIRATION_TIMEOUT
The parameter key that defines the default expiration timeout- See Also:
-
DEFAULT_EXPIRATION_TIMEOUT_VALUE
public static final long DEFAULT_EXPIRATION_TIMEOUT_VALUEThe default expiration timeout, set to 15 minutes- See Also:
-
-
Constructor Details
-
ExoCacheFactoryImpl
public ExoCacheFactoryImpl(org.exoplatform.container.ExoContainerContext ctx, org.exoplatform.container.xml.InitParams params) throws IOException The default constructor- Throws:
IOException
-
-
Method Details
-
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
-