Class MediaCacheRegion
- java.lang.Object
-
- de.hybris.platform.regioncache.region.impl.AbstractMapBasedCacheRegion
-
- de.hybris.platform.regioncache.region.impl.LRUCacheRegion
-
- de.hybris.platform.media.storage.impl.MediaCacheRegion
-
- All Implemented Interfaces:
CacheRegion,UnlimitedCacheRegion
public class MediaCacheRegion extends LRUCacheRegion implements UnlimitedCacheRegion
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMEDIA_TYPE-
Fields inherited from class de.hybris.platform.regioncache.region.impl.AbstractMapBasedCacheRegion
cacheMap, handledTypes, lifecycleCallback, name, stats, statsEnabled
-
-
Constructor Summary
Constructors Constructor Description MediaCacheRegion(java.lang.String name, int sizeInMb, java.lang.String cacheFolder, boolean statsEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetWithLoader(CacheKey key, CacheValueLoader loader)Gets value from cache.voidsetHandledTypes(java.lang.String[] handledTypes)-
Methods inherited from class de.hybris.platform.regioncache.region.impl.LRUCacheRegion
getCacheMaxEntries, putIfAbsent
-
Methods inherited from class de.hybris.platform.regioncache.region.impl.AbstractMapBasedCacheRegion
clearCache, containsKey, equals, get, getAllKeys, getCacheRegionStatistics, getHandledTypes, getMaxReachedSize, getName, hashCode, invalidate, isStatsEnabled, registerLifecycleCallback, remove, setStatsEnabled, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.regioncache.region.CacheRegion
clearCache, containsKey, get, getAllKeys, getCacheMaxEntries, getCacheRegionStatistics, getHandledTypes, getMaxReachedSize, getName, invalidate, isStatsEnabled, registerLifecycleCallback, remove, setStatsEnabled
-
-
-
-
Field Detail
-
MEDIA_TYPE
public static final java.lang.String MEDIA_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setHandledTypes
public void setHandledTypes(java.lang.String[] handledTypes)
- Overrides:
setHandledTypesin classAbstractMapBasedCacheRegion
-
getWithLoader
public java.lang.Object getWithLoader(CacheKey key, CacheValueLoader loader) throws CacheValueLoadException
Description copied from interface:CacheRegionGets value from cache. Invokes loader if necessary. Must be thread safe.- Specified by:
getWithLoaderin interfaceCacheRegion- Overrides:
getWithLoaderin classAbstractMapBasedCacheRegion- Throws:
CacheValueLoadException
-
-