public class TestPortalCache<K extends java.io.Serializable,V> extends BasePortalCache<K,V>
aggregatedPortalCacheListener
Constructor and Description |
---|
TestPortalCache(com.liferay.portal.kernel.cache.PortalCacheManager<K,V> portalCacheManager,
java.lang.String portalCacheName) |
TestPortalCache(java.lang.String portalCacheName) |
Modifier and Type | Method and Description |
---|---|
protected V |
doGet(K key) |
protected void |
doPut(K key,
V value,
int timeToLive) |
protected V |
doPutIfAbsent(K key,
V value,
int timeToLive) |
protected void |
doRemove(K key) |
protected boolean |
doRemove(K key,
V value) |
protected V |
doReplace(K key,
V value,
int timeToLive) |
protected boolean |
doReplace(K key,
V oldValue,
V newValue,
int timeToLive) |
java.util.List<K> |
getKeys() |
java.lang.String |
getName()
Deprecated.
As of 1.1.0, replaced by
getPortalCacheName() |
java.lang.String |
getPortalCacheName() |
void |
removeAll() |
get, getPortalCacheManager, put, put, putIfAbsent, putIfAbsent, registerPortalCacheListener, registerPortalCacheListener, remove, remove, replace, replace, replace, replace, unregisterPortalCacheListener, unregisterPortalCacheListeners
public TestPortalCache(com.liferay.portal.kernel.cache.PortalCacheManager<K,V> portalCacheManager, java.lang.String portalCacheName)
public TestPortalCache(java.lang.String portalCacheName)
public java.util.List<K> getKeys()
@Deprecated public java.lang.String getName()
getPortalCacheName()
public java.lang.String getPortalCacheName()
public void removeAll()
protected V doGet(K key)
doGet
in class BasePortalCache<K extends java.io.Serializable,V>
protected void doPut(K key, V value, int timeToLive)
doPut
in class BasePortalCache<K extends java.io.Serializable,V>
protected V doPutIfAbsent(K key, V value, int timeToLive)
doPutIfAbsent
in class BasePortalCache<K extends java.io.Serializable,V>
protected void doRemove(K key)
doRemove
in class BasePortalCache<K extends java.io.Serializable,V>
protected boolean doRemove(K key, V value)
doRemove
in class BasePortalCache<K extends java.io.Serializable,V>
protected V doReplace(K key, V value, int timeToLive)
doReplace
in class BasePortalCache<K extends java.io.Serializable,V>