Interface CPSCacheKeyGenerator
- All Known Implementing Classes:
CPSCacheKeyGeneratorImpl
public interface CPSCacheKeyGenerator
Generates cache keys to be used for hybris cache regions in CPS context
-
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKeycreateConfigurationCacheKey(String configId) Creates a cache key for the configuration cache regiondefault de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKeycreateConfigurationCacheKey(String configId, Map<String, String> ctxtAttributes) Creates a cache key for the configuration cache regionde.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKeycreateCookieCacheKey(String configId) Creates a cache key for the cookie cache regiondefault de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKeycreateCookieCacheKey(String configId, Map<String, String> contextAttr) Creates a cache key for the cookie cache region.de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKeycreateKnowledgeBaseHeadersCacheKey(String product) Creates a cache key for the knowledgebase headers cache regionde.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKeycreateMasterDataCacheKey(String kbId, String lang) Creates a cache key for the master data cache regionde.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKeycreateValuePricesCacheKey(String kbId, String pricingProduct) Creates a cache key for the value prices cache regiondefault voidpopulateCacheKeyContextAttributes(Map<String, String> ctxtAttributes, String serviceId) Populates the map with all cache key components that depend on the current sessionContext, so a cache key for a given configId can be re-created independently of the current session/thread context.
-
Method Details
-
createMasterDataCacheKey
de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKey createMasterDataCacheKey(String kbId, String lang) Creates a cache key for the master data cache region- Parameters:
kbId- knowledgebase idlang- language- Returns:
- the created cache key
-
createKnowledgeBaseHeadersCacheKey
de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKey createKnowledgeBaseHeadersCacheKey(String product) Creates a cache key for the knowledgebase headers cache region- Parameters:
product- product for which knowledgebases are looked up- Returns:
- the created cache key
-
createCookieCacheKey
de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKey createCookieCacheKey(String configId) Creates a cache key for the cookie cache region- Parameters:
configId- configuration runtime id- Returns:
- the created cache key
-
createValuePricesCacheKey
de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKey createValuePricesCacheKey(String kbId, String pricingProduct) Creates a cache key for the value prices cache region- Parameters:
kbId- knowledgebase id for which all value prices are calculatedpricingProduct-- Returns:
- the created cache key
-
createConfigurationCacheKey
de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKey createConfigurationCacheKey(String configId) Creates a cache key for the configuration cache region- Parameters:
configId- configuration id- Returns:
- the created cache key
-
createConfigurationCacheKey
default de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKey createConfigurationCacheKey(String configId, Map<String, String> ctxtAttributes) Creates a cache key for the configuration cache region- Parameters:
configId- configuration idctxtAttributes- context attributes- Returns:
- the created cache key
-
createCookieCacheKey
default de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKey createCookieCacheKey(String configId, Map<String, String> contextAttr) Creates a cache key for the cookie cache region. Cache key components provided via context attribute map have precedence.- Parameters:
configId- configuration runtime idctxtAttributes- context attributes- 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 be re-created independently of the current session/thread context.- Parameters:
ctxtAttributes- context attribute map to populate
-