Class AbstractRegistrableCacheKey
java.lang.Object
de.hybris.platform.regioncache.key.AbstractCacheKey
de.hybris.platform.regioncache.key.AbstractRegistrableCacheKey
- All Implemented Interfaces:
CacheKey,RegistrableCacheKey<String>
- Direct Known Subclasses:
FlexibleSearch.FlexibleSearchCacheKey,TestLoadableRegistrableCacheTestKey,TestRegistrableCacheKey
public abstract class AbstractRegistrableCacheKey
extends AbstractCacheKey
implements RegistrableCacheKey<String>
All units using cache registry (currently flexible search) should use this class to define cache key.
This is used by CacheController to decide whether using cache registry or not.
This is used by CacheController to decide whether using cache registry or not.
-
Field Summary
Fields inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
cachedHash, tenantId, typeCode, valueType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong[]gets last versions of the corresponding type fromRegistrableCacheKey.getDependentTypes()String[]All registrable units should define dependent types.
In case of invalidation of one of the dependent type registrable cache unit gets invalidated too.Gets code from typesystem.voidsetDependentTypeGenerations(long[] dependentTypeGeneration) lazily loaded generationtoString()Methods inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
equals, getCacheValueType, getTenantId, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.hybris.platform.regioncache.key.CacheKey
getCacheValueType, getTenantId
-
Constructor Details
-
AbstractRegistrableCacheKey
-
-
Method Details
-
getTypeCode
Description copied from class:AbstractCacheKeyGets code from typesystem.- Specified by:
getTypeCodein interfaceCacheKey- Overrides:
getTypeCodein classAbstractCacheKey
-
toString
- Overrides:
toStringin classAbstractCacheKey
-
setDependentTypeGenerations
public void setDependentTypeGenerations(long[] dependentTypeGeneration) Description copied from interface:RegistrableCacheKeylazily loaded generation- Specified by:
setDependentTypeGenerationsin interfaceRegistrableCacheKey<String>
-
getDependentTypeGenerations
public long[] getDependentTypeGenerations()Description copied from interface:RegistrableCacheKeygets last versions of the corresponding type fromRegistrableCacheKey.getDependentTypes()- Specified by:
getDependentTypeGenerationsin interfaceRegistrableCacheKey<String>
-
getDependentTypes
Description copied from interface:RegistrableCacheKeyAll registrable units should define dependent types.
In case of invalidation of one of the dependent type registrable cache unit gets invalidated too.- Specified by:
getDependentTypesin interfaceRegistrableCacheKey<String>
-