Class TestPortalCache<K extends Serializable,V>
java.lang.Object
com.liferay.portal.cache.BasePortalCache<K,V>
com.liferay.portal.cache.test.util.TestPortalCache<K,V>
- All Implemented Interfaces:
com.liferay.portal.cache.LowLevelCache<K,
,V> com.liferay.portal.kernel.cache.PortalCache<K,
V>
- Direct Known Subclasses:
ShardedTestPortalCache
public class TestPortalCache<K extends Serializable,V>
extends com.liferay.portal.cache.BasePortalCache<K,V>
-
Field Summary
Fields inherited from class com.liferay.portal.cache.BasePortalCache
aggregatedPortalCacheListener
Fields inherited from interface com.liferay.portal.kernel.cache.PortalCache
DEFAULT_TIME_TO_LIVE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected V
protected void
protected V
doPutIfAbsent
(K key, V value, int timeToLive) protected void
protected boolean
protected V
protected boolean
protected ConcurrentMap<K,
V> getKeys()
void
Methods inherited from class com.liferay.portal.cache.BasePortalCache
get, getPortalCacheManager, isMVCC, isSharded, put, put, putIfAbsent, putIfAbsent, registerPortalCacheListener, registerPortalCacheListener, remove, remove, replace, replace, replace, replace, unregisterPortalCacheListener, unregisterPortalCacheListeners
-
Constructor Details
-
TestPortalCache
-
-
Method Details
-
getKeys
-
getPortalCacheName
-
removeAll
public void removeAll() -
doGet
- Specified by:
doGet
in classcom.liferay.portal.cache.BasePortalCache<K extends Serializable,
V>
-
doPut
- Specified by:
doPut
in classcom.liferay.portal.cache.BasePortalCache<K extends Serializable,
V>
-
doPutIfAbsent
- Specified by:
doPutIfAbsent
in classcom.liferay.portal.cache.BasePortalCache<K extends Serializable,
V>
-
doRemove
- Specified by:
doRemove
in classcom.liferay.portal.cache.BasePortalCache<K extends Serializable,
V>
-
doRemove
- Specified by:
doRemove
in classcom.liferay.portal.cache.BasePortalCache<K extends Serializable,
V>
-
doReplace
- Specified by:
doReplace
in classcom.liferay.portal.cache.BasePortalCache<K extends Serializable,
V>
-
doReplace
- Specified by:
doReplace
in classcom.liferay.portal.cache.BasePortalCache<K extends Serializable,
V>
-
getConcurrentMap
-