Interface CacheKeyGenerator

All Known Implementing Classes:
CacheKeyGeneratorImpl

public interface CacheKeyGenerator
Generates cache keys to be used for hybris cache regions
  • Method Details

    • createAnalyticsDataCacheKey

      ProductConfigurationCacheKey createAnalyticsDataCacheKey(String configId)
      Creates a cache key for the analytics data cache region
      Parameters:
      configId - configuration id
      Returns:
      the created cache key
    • createPriceSummaryCacheKey

      ProductConfigurationCacheKey createPriceSummaryCacheKey(String configId)
      Creates a cache key for the price summary cache region
      Parameters:
      configId - configuration id
      Returns:
      the created cache key
    • createConfigCacheKey

      ProductConfigurationCacheKey createConfigCacheKey(String configId)
      Creates a cache key for the configuration cache region
      Parameters:
      configId - configuration id
      Returns:
      the created cache key
    • createClassificationSystemCPQAttributesCacheKey

      ProductConfigurationCacheKey createClassificationSystemCPQAttributesCacheKey(String productCode)
      Creates a cache key for the classification system CPQ attributes cache region
      Parameters:
      configId - configuration id
      Returns:
      the created cache key
    • populateCacheKeyContextAttributes

      default void populateCacheKeyContextAttributes(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.
      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 attributes
      configId - 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 attributes
      configId - 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 attributes
      configId - configuration id
      Returns:
      the created cache key