com.liferay.portal.cache
Class MemoryPortalCache
java.lang.Object
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
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 |
MemoryPortalCache
public MemoryPortalCache(int initialCapacity)
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