Interface CPSCacheKeyGenerator

  • All Known Implementing Classes:
    CPSCacheKeyGeneratorImpl

    public interface CPSCacheKeyGenerator
    Generates cache keys to be used for hybris cache regions in CPS context
    • Method Detail

      • createMasterDataCacheKey

        ProductConfigurationCacheKey createMasterDataCacheKey​(java.lang.String kbId,
                                                              java.lang.String lang)
        Creates a cache key for the master data cache region
        Parameters:
        kbId - knowledgebase id
        lang - language
        Returns:
        the created cache key
      • createKnowledgeBaseHeadersCacheKey

        ProductConfigurationCacheKey createKnowledgeBaseHeadersCacheKey​(java.lang.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

        ProductConfigurationCacheKey createCookieCacheKey​(java.lang.String configId)
        Creates a cache key for the cookie cache region
        Parameters:
        configId - configuration runtime id
        Returns:
        the created cache key
      • createValuePricesCacheKey

        ProductConfigurationCacheKey createValuePricesCacheKey​(java.lang.String kbId,
                                                               java.lang.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

        ProductConfigurationCacheKey createConfigurationCacheKey​(java.lang.String configId)
        Creates a cache key for the configuration cache region
        Parameters:
        configId - configuration id
        Returns:
        the created cache key