springboot cache

https://blog.csdn.net/andy_zhang2007/article/details/96861423

https://blog.csdn.net/szhlcy/article/details/102984925

https://blog.csdn.net/szhlcy/article/details/102984925

默认提供的cachemanger

ConcurrentMapCacheManager

CacheManager接口的连个方法的实现:
org.springframework.cache.concurrent.ConcurrentMapCacheManager#getCacheNames
org.springframework.cache.concurrent.ConcurrentMapCacheManager#getCache

getCache的逻辑:
1 如果存在cache返回
2 如果不存在,则动态的创建一个cache


使用
@EnableCaching中CachingConfigurationSelector注册的三个bean
AutoProxyRegistrar  InfrastructureAdvisorAutoProxyCreator
ProxyCachingConfiguration








原文地址:https://www.cnblogs.com/windy13/p/12873027.html