public abstract class BasePortalCache<K extends java.io.Serializable,V> extends java.lang.Object implements LowLevelCache<K,V>
Modifier and Type | Field and Description |
---|---|
protected AggregatedPortalCacheListener<K,V> |
aggregatedPortalCacheListener |
Constructor and Description |
---|
BasePortalCache(com.liferay.portal.kernel.cache.PortalCacheManager<K,V> portalCacheManager) |
Modifier and Type | Method and Description |
---|---|
protected abstract V |
doGet(K key) |
protected abstract void |
doPut(K key,
V value,
int timeToLive) |
protected abstract V |
doPutIfAbsent(K key,
V value,
int timeToLive) |
protected abstract void |
doRemove(K key) |
protected abstract boolean |
doRemove(K key,
V value) |
protected abstract V |
doReplace(K key,
V value,
int timeToLive) |
protected abstract boolean |
doReplace(K key,
V oldValue,
V newValue,
int timeToLive) |
V |
get(K key) |
com.liferay.portal.kernel.cache.PortalCacheManager<K,V> |
getPortalCacheManager() |
boolean |
isBlocking()
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
boolean |
isMVCC() |
void |
put(K key,
V value) |
void |
put(K key,
V value,
int timeToLive) |
V |
putIfAbsent(K key,
V value) |
V |
putIfAbsent(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) |
boolean |
remove(K key,
V value) |
V |
replace(K key,
V value) |
V |
replace(K key,
V value,
int timeToLive) |
boolean |
replace(K key,
V oldValue,
V newValue) |
boolean |
replace(K key,
V oldValue,
V newValue,
int timeToLive) |
void |
unregisterPortalCacheListener(com.liferay.portal.kernel.cache.PortalCacheListener<K,V> portalCacheListener) |
void |
unregisterPortalCacheListeners() |
protected final AggregatedPortalCacheListener<K extends java.io.Serializable,V> aggregatedPortalCacheListener
public com.liferay.portal.kernel.cache.PortalCacheManager<K,V> getPortalCacheManager()
@Deprecated public boolean isBlocking()
public boolean isMVCC()
public V putIfAbsent(K key, V value)
putIfAbsent
in interface LowLevelCache<K extends java.io.Serializable,V>
public V putIfAbsent(K key, V value, int timeToLive)
putIfAbsent
in interface LowLevelCache<K extends java.io.Serializable,V>
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 boolean remove(K key, V value)
remove
in interface LowLevelCache<K extends java.io.Serializable,V>
public V replace(K key, V value)
replace
in interface LowLevelCache<K extends java.io.Serializable,V>
public V replace(K key, V value, int timeToLive)
replace
in interface LowLevelCache<K extends java.io.Serializable,V>
public boolean replace(K key, V oldValue, V newValue)
replace
in interface LowLevelCache<K extends java.io.Serializable,V>
public boolean replace(K key, V oldValue, V newValue, int timeToLive)
replace
in interface LowLevelCache<K extends java.io.Serializable,V>
public void unregisterPortalCacheListener(com.liferay.portal.kernel.cache.PortalCacheListener<K,V> portalCacheListener)
public void unregisterPortalCacheListeners()
protected abstract void doRemove(K key)