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 Details

    • CONNECTION_FACTORY_CREATOR

      public static final String CONNECTION_FACTORY_CREATOR
      The parameter key that defines the ConnectionFactoryCreator
      See Also:
    • MEMCACHED_LOCATIONS

      public static final String MEMCACHED_LOCATIONS
      The parameter key that defines the memcache locations
      See Also:
    • DEFAULT_EXPIRATION_TIMEOUT

      public static final String 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_VALUE
      The 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:
      createCache in interface org.exoplatform.services.cache.ExoCacheFactory
      Throws:
      org.exoplatform.services.cache.ExoCacheInitException
    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable