com.liferay.portal.cache
Class EhcachePortalCache

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

public class EhcachePortalCache
extends java.lang.Object
implements com.liferay.portal.kernel.cache.PortalCache

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
EhcachePortalCache(net.sf.ehcache.Cache cache)
           
 
Method Summary
 java.lang.Object get(java.lang.String key)
           
 void put(java.lang.String key, java.lang.Object obj)
           
 void put(java.lang.String key, java.lang.Object obj, int timeToLive)
           
 void put(java.lang.String key, java.io.Serializable obj)
           
 void put(java.lang.String key, java.io.Serializable obj, int timeToLive)
           
 void remove(java.lang.String key)
           
 void removeAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhcachePortalCache

public EhcachePortalCache(net.sf.ehcache.Cache cache)
Method Detail

get

public java.lang.Object get(java.lang.String key)
Specified by:
get in interface com.liferay.portal.kernel.cache.PortalCache

put

public void put(java.lang.String key,
                java.lang.Object obj)
Specified by:
put in interface com.liferay.portal.kernel.cache.PortalCache

put

public void put(java.lang.String key,
                java.lang.Object obj,
                int timeToLive)
Specified by:
put in interface com.liferay.portal.kernel.cache.PortalCache

put

public void put(java.lang.String key,
                java.io.Serializable obj)
Specified by:
put in interface com.liferay.portal.kernel.cache.PortalCache

put

public void put(java.lang.String key,
                java.io.Serializable obj,
                int timeToLive)
Specified by:
put in interface com.liferay.portal.kernel.cache.PortalCache

remove

public void remove(java.lang.String key)
Specified by:
remove in interface com.liferay.portal.kernel.cache.PortalCache

removeAll

public void removeAll()
Specified by:
removeAll in interface com.liferay.portal.kernel.cache.PortalCache