Package com.liferay.portal.kernel.cache
Class PortalCacheHelperUtil
Object
com.liferay.portal.kernel.cache.PortalCacheHelperUtil
- Author:
- Tina Tian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clearPortalCaches
(String portalCacheManagerName) static <K extends Serializable,
V>
PortalCache<K,V> getPortalCache
(String portalCacheManagerName, String portalCacheName) static <K extends Serializable,
V>
PortalCache<K,V> getPortalCache
(String portalCacheManagerName, String portalCacheName, boolean mvcc) static <K extends Serializable,
V>
PortalCache<K,V> getPortalCache
(String portalCacheManagerName, String portalCacheName, boolean mvcc, boolean sharded) static <K extends Serializable,
V>
voidputWithoutReplicator
(PortalCache<K, V> portalCache, K key, V value) static <K extends Serializable,
V>
voidputWithoutReplicator
(PortalCache<K, V> portalCache, K key, V value, int timeToLive) static void
removeAllWithoutReplicator
(PortalCache<?, ?> portalCache) static void
removePortalCache
(String portalCacheManagerName, String portalCacheName) static void
removePortalCaches
(String portalCacheManagerName, long companyId) static <K extends Serializable>
voidremoveWithoutReplicator
(PortalCache<K, ?> portalCache, K key)
-
Constructor Details
-
PortalCacheHelperUtil
public PortalCacheHelperUtil()
-
-
Method Details
-
clearPortalCaches
-
getPortalCache
public static <K extends Serializable,V> PortalCache<K,V> getPortalCache(String portalCacheManagerName, String portalCacheName) -
getPortalCache
public static <K extends Serializable,V> PortalCache<K,V> getPortalCache(String portalCacheManagerName, String portalCacheName, boolean mvcc) -
getPortalCache
public static <K extends Serializable,V> PortalCache<K,V> getPortalCache(String portalCacheManagerName, String portalCacheName, boolean mvcc, boolean sharded) -
putWithoutReplicator
public static <K extends Serializable,V> void putWithoutReplicator(PortalCache<K, V> portalCache, K key, V value) -
putWithoutReplicator
public static <K extends Serializable,V> void putWithoutReplicator(PortalCache<K, V> portalCache, K key, V value, int timeToLive) -
removeAllWithoutReplicator
-
removePortalCache
-
removePortalCaches
-
removeWithoutReplicator
public static <K extends Serializable> void removeWithoutReplicator(PortalCache<K, ?> portalCache, K key)
-