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 Type
    Method
    Description
    de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKey
    Creates a cache key for the configuration cache region
    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
    de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKey
    Creates a cache key for the cookie cache region
    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.
    de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKey
    Creates a cache key for the knowledgebase headers cache region
    de.hybris.platform.sap.productconfig.runtime.interf.cache.impl.ProductConfigurationCacheKey
    Creates a cache key for the master data cache region
    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
    default void
    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 id
      lang - 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 calculated
      pricingProduct -
      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 id
      ctxtAttributes - 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 id
      ctxtAttributes - context attributes
      Returns:
      the created cache key
    • populateCacheKeyContextAttributes

      default void populateCacheKeyContextAttributes(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.
      Parameters:
      ctxtAttributes - context attribute map to populate