Class CatalogCaffeineAutoConfiguration
java.lang.Object
com.broadleafcommerce.catalog.autoconfigure.CatalogCaffeineAutoConfiguration
@Configuration
@Conditional(com.broadleafcommerce.common.extension.cache.condition.OnEnabledCacheCondition.class)
@ConditionalOnClass(org.springframework.cache.caffeine.CaffeineCacheManager.class)
@ConditionalOnProperty(value="com.broadleafcommerce.cache.activeCacheManagerImplementation",
havingValue="com.broadleafcommerce.common.extension.cache.caffeine.CaffeineAutoConfiguration")
@AutoConfigureAfter(com.broadleafcommerce.common.extension.cache.caffeine.CaffeineAutoConfiguration.class)
@EnableConfigurationProperties({CatalogCacheProperties.class,CatalogCacheWeightProperties.class})
public class CatalogCaffeineAutoConfiguration
extends Object
Auto-configuration for catalog caching using Caffeine as the underlying cache implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.caffeine.CaffeineCacheManager>catalogCaffeineManagerCustomizer(com.broadleafcommerce.common.extension.cache.caffeine.CaffeineBudgetManager budgetManager, CatalogCacheProperties props, CatalogCacheWeightProperties weightProps)
-
Constructor Details
-
CatalogCaffeineAutoConfiguration
public CatalogCaffeineAutoConfiguration()
-
-
Method Details
-
catalogCaffeineManagerCustomizer
@Bean @ConditionalOnMissingBean(name="catalogCaffeineManagerCustomizer") public org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.caffeine.CaffeineCacheManager> catalogCaffeineManagerCustomizer(com.broadleafcommerce.common.extension.cache.caffeine.CaffeineBudgetManager budgetManager, CatalogCacheProperties props, CatalogCacheWeightProperties weightProps)
-