Spring Cache
一饭
这个作者很懒,什么都没留下…
展开
-
spring cache 1: CacheOperation
spring cache 1: CacheOperationumlCacheOperation私有字段CacheOperation.BuilderCacheableOperationCachePutOperationCacheEvictOperationCacheOperation 类在spring解析 @Cacheable,@CachePut, @CacheEvict,@CacheConfig...原创 2019-06-19 19:40:12 · 758 阅读 · 0 评论 -
spring cache 2: CacheOperationSource
spring cache 2: CacheOperationSourceumlCacheOperationSourceAbstractFallbackCacheOperationSource私有字段需要子类实现的方法getCacheOperations() 的实现CacheAnnotationParser 相关类CacheAnnotationParserSpringCacheAnnotationP...原创 2019-06-19 20:00:43 · 796 阅读 · 0 评论 -
spring cache 3: CacheOperationSourcePointcut
spring cache 3: CacheOperationSourcePointcutumlStaticMethodMatcherStaticMethodMatcherPointcutCacheOperationSourcePointcut看之前需要了解 spring中 org.springframework.aop.PointCut 这个接口的作用之前已经讲过 spring cache中 ...原创 2019-06-19 20:04:23 · 370 阅读 · 0 评论 -
spring cache 4: CacheAspectSupport
spring cache 4: CacheAspectSupportCacheOperationMetadataCacheOperationContextCacheAspectSupport 的重要方法getCacheOperationMetadataexecuteCacheAspectSupport 是 spring 执行 cache 相关操作的核心类它有5个内部类CacheOperat...原创 2019-06-19 20:17:26 · 1614 阅读 · 0 评论 -
spring cache 5: ProxyCachingConfiguration
ProxyCachingConfiguration当注解 @EnableCaching 对一个类进行修饰时,就会生成一些bean这个类很简单/*** {@code @Configuration} class that registers the Spring infrastructure beans necessary* to enable proxy-based annotation-...原创 2019-06-19 20:27:54 · 1983 阅读 · 0 评论 -
spring cache 6: 启动时计算并缓存方法是否需要走缓存
spring cache 6: 启动时计算并缓存方法是否需要走缓存初始化bean时:BeanFactoryCacheOperationSourceAdvisor(Advisor)中的Pointcut是CacheOperationSourcePointcutspring启动时创建对象(ProxyFactory创建当前对象的一个Proxy类)中的wrapIfNecessary需要计算出所有ad...原创 2019-06-19 20:30:58 · 290 阅读 · 0 评论