Class LRUCacheRegion
java.lang.Object
de.hybris.platform.regioncache.region.impl.AbstractMapBasedCacheRegion
de.hybris.platform.regioncache.region.impl.LRUCacheRegion
- All Implemented Interfaces:
CacheRegion
- Direct Known Subclasses:
FacetSearchConfigCacheRegion,MediaCacheRegion,ScriptsCacheRegion
Cache region implementation based on Google's ConcurrentLinkedHashMap.
http://code.google.com/p/concurrentlinkedhashmap/
-
Field Summary
Fields inherited from class de.hybris.platform.regioncache.region.impl.AbstractMapBasedCacheRegion
cacheMap, handledTypes, lifecycleCallback, name, stats, statsEnabled -
Constructor Summary
ConstructorsConstructorDescriptionLRUCacheRegion(String name) LRUCacheRegion(String name, int maxEntries, boolean statsEnabled) LRUCacheRegion(String name, int maxEntries, boolean statsEnabled, com.googlecode.concurrentlinkedhashmap.Weigher<Object> weigher) LRUCacheRegion(String name, CacheStatistics stats, boolean statsEnabled, int maxEntries, com.googlecode.concurrentlinkedhashmap.Weigher<Object> weigher) -
Method Summary
Modifier and TypeMethodDescriptionlongGets number of cache entries above which invalidation occurs.protected ObjectputIfAbsent(CacheKey key, Object value) Methods inherited from class de.hybris.platform.regioncache.region.impl.AbstractMapBasedCacheRegion
clearCache, containsKey, equals, get, getAllKeys, getCacheRegionStatistics, getHandledTypes, getMaxReachedSize, getName, getWithLoader, hashCode, invalidate, isStatsEnabled, registerLifecycleCallback, remove, setHandledTypes, setStatsEnabled, toString
-
Constructor Details
-
LRUCacheRegion
-
LRUCacheRegion
-
LRUCacheRegion
-
LRUCacheRegion
public LRUCacheRegion(String name, CacheStatistics stats, boolean statsEnabled, int maxEntries, com.googlecode.concurrentlinkedhashmap.Weigher<Object> weigher)
-
-
Method Details
-
putIfAbsent
- Specified by:
putIfAbsentin classAbstractMapBasedCacheRegion
-
getCacheMaxEntries
public long getCacheMaxEntries()Description copied from interface:CacheRegionGets number of cache entries above which invalidation occurs.
-