Class MetadataCaffeineAutoConfiguration

java.lang.Object
com.broadleafcommerce.metadata.autoconfigure.MetadataCaffeineAutoConfiguration

@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({MetadataCacheProperties.class,MetadataCacheWeightProperties.class}) public class MetadataCaffeineAutoConfiguration extends Object
Configuration class for setting up metadata caching using Caffeine as the underlying cache implementation.
  • Constructor Details

    • MetadataCaffeineAutoConfiguration

      public MetadataCaffeineAutoConfiguration()
  • Method Details

    • metadataCaffeineManagerCustomizer

      @Bean @ConditionalOnMissingBean(name="metadataCaffeineManagerCustomizer") public org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.caffeine.CaffeineCacheManager> metadataCaffeineManagerCustomizer(com.broadleafcommerce.common.extension.cache.caffeine.CaffeineBudgetManager budgetManager, MetadataCacheProperties props, MetadataCacheWeightProperties weightProps)