类 CaffeineAutoConfigure

java.lang.Object
top.tangyh.basic.cache.CaffeineAutoConfigure

@ConditionalOnProperty(prefix="lamp.cache", name="type", havingValue="CAFFEINE") @EnableConfigurationProperties(CustomCacheProperties.class) public class CaffeineAutoConfigure extends Object
内存缓存配置
作者:
zuihou
  • 构造器详细资料

    • CaffeineAutoConfigure

      public CaffeineAutoConfigure()
  • 方法详细资料

    • caffeineDistributedLock

      @Bean @ConditionalOnMissingBean public DistributedLock caffeineDistributedLock()
      为了解决演示环境启动报错而加的类
    • cacheOps

      @Bean @ConditionalOnMissingBean public CacheOps cacheOps()
      caffeine 持久库
      返回:
      the redis repository
    • cachePlusOps

      @Bean @ConditionalOnMissingBean public CachePlusOps cachePlusOps()
      caffeine 增强持久库 仅用于避免报错, 正式环境请勿使用
      返回:
      the redis repository
    • caffeineCacheManager

      @Bean @Primary public org.springframework.cache.CacheManager caffeineCacheManager()