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

 

 








posted @ 2020-05-11 23:24  ~~~~~~~~~~~~~  阅读(160)  评论(0编辑  收藏  举报