Class 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 Detail

      • 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 IOException
        The 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:
        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