public class PortalCacheWrapper<K extends java.io.Serializable,V>
extends java.lang.Object
implements com.liferay.portal.kernel.cache.PortalCache<K,V>
Modifier and Type | Field and Description |
---|---|
protected com.liferay.portal.kernel.cache.PortalCache<K,V> |
portalCache |
Constructor and Description |
---|
PortalCacheWrapper(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache) |
Modifier and Type | Method and Description |
---|---|
V |
get(K key) |
java.util.List<K> |
getKeys() |
java.lang.String |
getName()
Deprecated.
As of 2.1.0
|
com.liferay.portal.kernel.cache.PortalCacheManager<K,V> |
getPortalCacheManager() |
java.lang.String |
getPortalCacheName() |
com.liferay.portal.kernel.cache.PortalCache<K,V> |
getWrappedPortalCache() |
void |
put(K key,
V value) |
void |
put(K key,
V value,
int timeToLive) |
void |
registerPortalCacheListener(com.liferay.portal.kernel.cache.PortalCacheListener<K,V> portalCacheListener) |
void |
registerPortalCacheListener(com.liferay.portal.kernel.cache.PortalCacheListener<K,V> portalCacheListener,
com.liferay.portal.kernel.cache.PortalCacheListenerScope portalCacheListenerScope) |
void |
remove(K key) |
void |
removeAll() |
void |
setPortalCache(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache) |
void |
unregisterPortalCacheListener(com.liferay.portal.kernel.cache.PortalCacheListener<K,V> portalCacheListener) |
void |
unregisterPortalCacheListeners() |
public java.util.List<K> getKeys()
@Deprecated public java.lang.String getName()
public com.liferay.portal.kernel.cache.PortalCacheManager<K,V> getPortalCacheManager()
public java.lang.String getPortalCacheName()
public com.liferay.portal.kernel.cache.PortalCache<K,V> getWrappedPortalCache()
public void registerPortalCacheListener(com.liferay.portal.kernel.cache.PortalCacheListener<K,V> portalCacheListener)
public void registerPortalCacheListener(com.liferay.portal.kernel.cache.PortalCacheListener<K,V> portalCacheListener, com.liferay.portal.kernel.cache.PortalCacheListenerScope portalCacheListenerScope)
public void remove(K key)
public void removeAll()
public void setPortalCache(com.liferay.portal.kernel.cache.PortalCache<K,V> portalCache)
public void unregisterPortalCacheListener(com.liferay.portal.kernel.cache.PortalCacheListener<K,V> portalCacheListener)