Class LegacyCacheKey
java.lang.Object
de.hybris.platform.regioncache.key.AbstractCacheKey
de.hybris.platform.regioncache.key.legacy.LegacyCacheKey
- All Implemented Interfaces:
CacheKey
- Direct Known Subclasses:
AbstractLegacyRegistrableCacheKey,TestCacheKeyFactory.TestLegacyCacheKeyWithLoader
Class wraps old fashion Object[] key to meaningful structure.
This class does not handle FlexibleSearch multi-keys: [ [ ... ], [ ... ], [ ... ] ].
Sanity check is done in the constructor. To handle multi-keys override RegistrableCacheKey (see FlexibleSearchCacheUnit).
This class does not handle FlexibleSearch multi-keys: [ [ ... ], [ ... ], [ ... ] ].
Sanity check is done in the constructor. To handle multi-keys override RegistrableCacheKey (see FlexibleSearchCacheUnit).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Object[]We keep legacy key in order to support equals().Fields inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
cachedHash, tenantId, typeCode, valueType -
Constructor Summary
ConstructorsConstructorDescriptionLegacyCacheKey(Object[] key, String tenantId) LegacyCacheKey(String typeCode, Object[] key, String tenantId) -
Method Summary
Methods inherited from class de.hybris.platform.regioncache.key.AbstractCacheKey
getCacheValueType, getTenantId, getTypeCode
-
Field Details
-
key
We keep legacy key in order to support equals().
-
-
Constructor Details
-
LegacyCacheKey
-
LegacyCacheKey
-
-
Method Details
-
getLegacyKey
-
toString
- Overrides:
toStringin classAbstractCacheKey
-
hashCode
public int hashCode()HashCode has to be the same as in AbstractCacheUnit- Overrides:
hashCodein classAbstractCacheKey
-
equals
- Overrides:
equalsin classAbstractCacheKey
-