springboot缓存相关

xxx AutoConfigration 用来选择配置哪个Configration(使哪个配置类生效)
Configration 用来把bean放入容器

如:CacheAutoConfiguration
CaffeineCacheConfiguration
CouchbaseCacheConfiguration
GenericCacheConfiguration
HazelcastCacheConfiguration
RedisCacheConfiguration
SimpleCacheConfiguration(默认配置)

等配置类,并通过每个configration头上的条件来判断加载哪个配置类,如cache默认加载的是SimpleCacheConfiguration,如果加载了SimpleCacheConfiguration,就会导入
他的cacheManager(缓存管理器)-----CouchbaseCacheManager。
如果生效的是RedisCacheConfiguration类,那么导入的则会使redis的bean-------RedisCacheManager(redis的缓存管理器)

SimpleCacheConfigurationspringboot缓存相关
RedisCacheConfigurationspringboot缓存相关