Liferay 6.0.5

com.liferay.portal.cache.memcached
Class MemcachePortalCache

java.lang.Object
  extended by com.liferay.portal.kernel.cache.BasePortalCache
      extended by com.liferay.portal.cache.memcached.MemcachePortalCache
All Implemented Interfaces:
PortalCache

public class MemcachePortalCache
extends BasePortalCache


Constructor Summary
MemcachePortalCache(String name, net.spy.memcached.MemcachedClientIF memcachedClient, int timeout, TimeUnit timeoutTimeUnit)
           
 
Method Summary
 void destroy()
           
 Collection<Object> get(Collection<String> keys)
           
 Object get(String key)
           
 void put(String key, Object obj)
           
 void put(String key, Object obj, int timeToLive)
           
 void put(String key, Serializable obj)
           
 void put(String key, Serializable obj, int timeToLive)
           
 void remove(String key)
           
 void removeAll()
           
 void setTimeToLive(int timeToLive)
           
 
Methods inherited from class com.liferay.portal.kernel.cache.BasePortalCache
isDebug, processKey, setDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemcachePortalCache

public MemcachePortalCache(String name,
                           net.spy.memcached.MemcachedClientIF memcachedClient,
                           int timeout,
                           TimeUnit timeoutTimeUnit)
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface PortalCache
Overrides:
destroy in class BasePortalCache

get

public Collection<Object> get(Collection<String> keys)

get

public Object get(String key)

put

public void put(String key,
                Object obj)

put

public void put(String key,
                Object obj,
                int timeToLive)

put

public void put(String key,
                Serializable obj)

put

public void put(String key,
                Serializable obj,
                int timeToLive)

remove

public void remove(String key)

removeAll

public void removeAll()

setTimeToLive

public void setTimeToLive(int timeToLive)

Liferay 6.0.5