Class AbstractCacheKey
java.lang.Object
de.hybris.platform.regioncache.key.AbstractCacheKey
- All Implemented Interfaces:
CacheKey
- Direct Known Subclasses:
AbstractRegistrableCacheKey,CsrfParametersCacheKey,DefaultDeletedItemCacheKey,LegacyCacheKey,ObjectCacheKey,ProductConfigurationCacheKey,ProductConfigurationEHCacheAccessImplTest.StringCacheKey,TestCacheKey,WebhookDeletedItemCacheKey
Abstract class used as a base class for regioncache keys.
CacheKey can mark associated value as serializable or nor (CacheUnitType).
CacheKey carries information of type code (String).
Known subtypes:
CacheKey can mark associated value as serializable or nor (CacheUnitType).
CacheKey carries information of type code (String).
Known subtypes:
- LegacyCacheKey: used to convert between Object[] and CacheKey
- RegistrableCacheKey: used to mark a cache unit as using cache registry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final Stringprotected final ObjectEach key has value and type.protected final CacheUnitValueTypeDefines if associated value is SERIALIZABLE or NON_SERIALIZABLE. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCacheKey(CacheUnitValueType valueType, Object typeCode, String tenantId) Creates key for supplied type and value type.AbstractCacheKey(Object typeCode, String tenantId) Creates NON_SERIALIZABLE key for supplied type. -
Method Summary
-
Field Details
-
valueType
Defines if associated value is SERIALIZABLE or NON_SERIALIZABLE.
By the default values are considered NON_SERIALIZABLE. This should change in hybris 5. -
tenantId
-
cachedHash
protected int cachedHash -
typeCode
Each key has value and type. This field keeps type.
-
-
Constructor Details
-
AbstractCacheKey
Creates NON_SERIALIZABLE key for supplied type. -
AbstractCacheKey
Creates key for supplied type and value type.
-
-
Method Details
-
getCacheValueType
gets value type. Currently not used. To be used in hybris 5.- Specified by:
getCacheValueTypein interfaceCacheKey
-
getTypeCode
Gets code from typesystem.- Specified by:
getTypeCodein interfaceCacheKey
-
hashCode
public int hashCode() -
getTenantId
Description copied from interface:CacheKeyGets tenant- Specified by:
getTenantIdin interfaceCacheKey
-
equals
-
toString
-