Interface CacheKeyGenerator
- All Known Implementing Classes:
CacheKeyGeneratorImpl
public interface CacheKeyGenerator
Generates cache keys to be used for hybris cache regions
-
Method Summary
Modifier and TypeMethodDescriptioncreateAnalyticsDataCacheKey(String configId) Creates a cache key for the analytics data cache regiondefault ProductConfigurationCacheKeycreateAnalyticsDataCacheKey(String configId, Map<String, String> ctxtAttributes) Creates a cache key for the analytics data cache regioncreateClassificationSystemCPQAttributesCacheKey(String productCode) Creates a cache key for the classification system CPQ attributes cache regioncreateConfigCacheKey(String configId) Creates a cache key for the configuration cache regiondefault ProductConfigurationCacheKeycreateConfigCacheKey(String configId, Map<String, String> ctxtAttributes) Creates a cache key for the configuration cache regioncreatePriceSummaryCacheKey(String configId) Creates a cache key for the price summary cache regiondefault ProductConfigurationCacheKeycreatePriceSummaryCacheKey(String configId, Map<String, String> ctxtAttributes) Creates a cache key for the price summary cache regiondefault voidpopulateCacheKeyContextAttributes(Map<String, String> ctxtAttributes) Populates the map with all cache key components that depend on the current sessionContext, so a cache key for a given configId can re-created independently of the current session/thread context.
-
Method Details
-
createAnalyticsDataCacheKey
Creates a cache key for the analytics data cache region- Parameters:
configId- configuration id- Returns:
- the created cache key
-
createPriceSummaryCacheKey
Creates a cache key for the price summary cache region- Parameters:
configId- configuration id- Returns:
- the created cache key
-
createConfigCacheKey
Creates a cache key for the configuration cache region- Parameters:
configId- configuration id- Returns:
- the created cache key
-
createClassificationSystemCPQAttributesCacheKey
Creates a cache key for the classification system CPQ attributes cache region- Parameters:
configId- configuration id- Returns:
- the created cache key
-
populateCacheKeyContextAttributes
Populates the map with all cache key components that depend on the current sessionContext, so a cache key for a given configId can re-created independently of the current session/thread context.- Parameters:
ctxtAttributes- context attribute map to populate
-
createConfigCacheKey
default ProductConfigurationCacheKey createConfigCacheKey(String configId, Map<String, String> ctxtAttributes) Creates a cache key for the configuration cache region- Parameters:
ctxtAttributes- context attributesconfigId- configuration id- Returns:
- the created cache key
-
createPriceSummaryCacheKey
default ProductConfigurationCacheKey createPriceSummaryCacheKey(String configId, Map<String, String> ctxtAttributes) Creates a cache key for the price summary cache region- Parameters:
ctxtAttributes- context attributesconfigId- configuration id- Returns:
- the created cache key
-
createAnalyticsDataCacheKey
default ProductConfigurationCacheKey createAnalyticsDataCacheKey(String configId, Map<String, String> ctxtAttributes) Creates a cache key for the analytics data cache region- Parameters:
ctxtAttributes- context attributesconfigId- configuration id- Returns:
- the created cache key
-