com.liferay.portal.cache.memory
Class MemoryPortalCache
java.lang.Object
com.liferay.portal.cache.memory.MemoryPortalCache
- All Implemented Interfaces:
- PortalCache
public class MemoryPortalCache
- extends Object
- implements PortalCache
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryPortalCache
public MemoryPortalCache(String name,
int initialCapacity)
destroy
public void destroy()
- Specified by:
destroy
in interface PortalCache
get
public Collection<Object> get(Collection<Serializable> keys)
- Specified by:
get
in interface PortalCache
get
public Object get(Serializable key)
- Specified by:
get
in interface PortalCache
getName
public String getName()
- Specified by:
getName
in interface PortalCache
put
public void put(Serializable key,
Object value)
- Specified by:
put
in interface PortalCache
put
public void put(Serializable key,
Object value,
int timeToLive)
- Specified by:
put
in interface PortalCache
put
public void put(Serializable key,
Serializable value)
- Specified by:
put
in interface PortalCache
put
public void put(Serializable key,
Serializable value,
int timeToLive)
- Specified by:
put
in interface PortalCache
registerCacheListener
public void registerCacheListener(CacheListener cacheListener)
- Specified by:
registerCacheListener
in interface PortalCache
registerCacheListener
public void registerCacheListener(CacheListener cacheListener,
CacheListenerScope cacheListenerScope)
- Specified by:
registerCacheListener
in interface PortalCache
remove
public void remove(Serializable key)
- Specified by:
remove
in interface PortalCache
removeAll
public void removeAll()
- Specified by:
removeAll
in interface PortalCache
unregisterCacheListener
public void unregisterCacheListener(CacheListener cacheListener)
- Specified by:
unregisterCacheListener
in interface PortalCache
unregisterCacheListeners
public void unregisterCacheListeners()
- Specified by:
unregisterCacheListeners
in interface PortalCache
notifyPutEvents
protected void notifyPutEvents(Serializable key,
Object value,
boolean updated)