接口的使用
org.springframework.cache.interceptor.CacheResolver
使用CacheResolver的程序包 程序包 说明 org.springframework.cache.annotation Annotations and supporting classes for declarative cache management.org.springframework.cache.interceptor AOP-based solution for declarative caching demarcation.org.springframework.cache.jcache.config Support package for declarative JSR-107 caching configuration.org.springframework.cache.jcache.interceptor AOP-based solution for declarative caching demarcation using JSR-107 annotations.org.springframework.cache.annotation中CacheResolver的使用
类型参数类型为CacheResolver的org.springframework.cache.annotation中的字段 修饰符和类型 字段 说明 protected Supplier<CacheResolver>AbstractCachingConfiguration. cacheResolver返回CacheResolver的org.springframework.cache.annotation中的方法 修饰符和类型 方法 说明 CacheResolverCachingConfigurer. cacheResolver()Return theCacheResolverbean to use to resolve regular caches for annotation-driven cache management.CacheResolverCachingConfigurerSupport. cacheResolver()org.springframework.cache.interceptor中CacheResolver的使用
实现CacheResolver的org.springframework.cache.interceptor中的类 修饰符和类型 类 说明 classAbstractCacheResolverA baseCacheResolverimplementation that requires the concrete implementation to provide the collection of cache name(s) based on the invocation context.classNamedCacheResolverACacheResolverthat forces the resolution to a configurable collection of name(s) against a givenCacheManager.classSimpleCacheResolverA simpleCacheResolverthat resolves theCacheinstance(s) based on a configurableCacheManagerand the name of the cache(s) as provided bygetCacheNames().返回CacheResolver的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 CacheResolverCacheAspectSupport. getCacheResolver()Return the defaultCacheResolverthat this cache aspect delegates to.参数类型为CacheResolver的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 protected Collection<? extends Cache>CacheAspectSupport. getCaches(CacheOperationInvocationContext<CacheOperation> context, CacheResolver cacheResolver)voidCacheAspectSupport. setCacheResolver(CacheResolver cacheResolver)Set the defaultCacheResolverthat this cache aspect should delegate to if no specific cache resolver has been set for the operation.voidCacheProxyFactoryBean. setCacheResolver(CacheResolver cacheResolver)Set the defaultCacheResolverthat this cache aspect should delegate to if no specific cache resolver has been set for the operation.参数类型为CacheResolver的org.springframework.cache.interceptor中的构造器 构造器 说明 CacheOperationMetadata(CacheOperation operation, Method method, Class<?> targetClass, KeyGenerator keyGenerator, CacheResolver cacheResolver)org.springframework.cache.jcache.config中CacheResolver的使用
类型参数类型为CacheResolver的org.springframework.cache.jcache.config中的字段 修饰符和类型 字段 说明 protected Supplier<CacheResolver>AbstractJCacheConfiguration. exceptionCacheResolver返回CacheResolver的org.springframework.cache.jcache.config中的方法 修饰符和类型 方法 说明 CacheResolverJCacheConfigurer. exceptionCacheResolver()Return theCacheResolverbean to use to resolve exception caches for annotation-driven cache management.CacheResolverJCacheConfigurerSupport. exceptionCacheResolver()org.springframework.cache.jcache.interceptor中CacheResolver的使用
实现CacheResolver的org.springframework.cache.jcache.interceptor中的类 修饰符和类型 类 说明 classSimpleExceptionCacheResolverA simpleCacheResolverthat resolves the exception cache based on a configurableCacheManagerand the name of the cache:CacheResultOperation.getExceptionCacheName().返回CacheResolver的org.springframework.cache.jcache.interceptor中的方法 修饰符和类型 方法 说明 protected CacheResolverAnnotationJCacheOperationSource. getCacheResolver(javax.cache.annotation.CacheResolverFactory factory, javax.cache.annotation.CacheMethodDetails<?> details)CacheResolverDefaultJCacheOperationSource. getCacheResolver()Return the specified cache resolver to use, if any.CacheResolverJCacheOperation. getCacheResolver()Return theCacheResolverinstance to use to resolve the cache to use for this operation.protected abstract CacheResolverAnnotationJCacheOperationSource. getDefaultCacheResolver()Return the defaultCacheResolverif none is set.protected CacheResolverDefaultJCacheOperationSource. getDefaultCacheResolver()protected abstract CacheResolverAnnotationJCacheOperationSource. getDefaultExceptionCacheResolver()Return the default exceptionCacheResolverif none is set.protected CacheResolverDefaultJCacheOperationSource. getDefaultExceptionCacheResolver()protected CacheResolverAnnotationJCacheOperationSource. getExceptionCacheResolver(javax.cache.annotation.CacheResolverFactory factory, javax.cache.annotation.CacheMethodDetails<javax.cache.annotation.CacheResult> details)CacheResolverDefaultJCacheOperationSource. getExceptionCacheResolver()Return the specified exception cache resolver to use, if any.参数类型为CacheResolver的org.springframework.cache.jcache.interceptor中的方法 修饰符和类型 方法 说明 voidDefaultJCacheOperationSource. setCacheResolver(CacheResolver cacheResolver)Set theCacheResolverto resolve regular caches.voidDefaultJCacheOperationSource. setExceptionCacheResolver(CacheResolver exceptionCacheResolver)Set theCacheResolverto resolve exception caches.