类 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明cacheOps()caffeine 持久库caffeine 增强持久库 仅用于避免报错, 正式环境请勿使用org.springframework.cache.CacheManager为了解决演示环境启动报错而加的类
-
构造器详细资料
-
CaffeineAutoConfigure
public CaffeineAutoConfigure()
-
-
方法详细资料
-
caffeineDistributedLock
为了解决演示环境启动报错而加的类 -
cacheOps
caffeine 持久库- 返回:
- the redis repository
-
cachePlusOps
caffeine 增强持久库 仅用于避免报错, 正式环境请勿使用- 返回:
- the redis repository
-
caffeineCacheManager
@Bean @Primary public org.springframework.cache.CacheManager caffeineCacheManager()
-