com.liferay.portal.cache
Class MemoryPortalCache

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

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

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
MemoryPortalCache(int initialCapacity)
           
 
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

MemoryPortalCache

public MemoryPortalCache(int initialCapacity)
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