程序包 org.springframework.cache.interceptor
AOP-based solution for declarative caching demarcation. Builds on the AOP infrastructure in org.springframework.aop.framework. Any POJO can be cache-advised with Spring.
接口概要 接口 说明 BasicOperation The base interface that all cache operations must implement.CacheErrorHandler A strategy for handling cache-related errors.CacheOperationInvocationContext<O extends BasicOperation> Representation of the context of the invocation of a cache operation.CacheOperationInvoker Abstract the invocation of a cache operation.CacheOperationSource Interface used byCacheInterceptor.CacheResolver Determine theCacheinstance(s) to use for an intercepted method invocation.KeyGenerator Cache key generator.类概要 类 说明 AbstractCacheInvoker A base component for invokingCacheoperations and using a configurableCacheErrorHandlerwhen an exception occurs.AbstractCacheResolver A baseCacheResolverimplementation that requires the concrete implementation to provide the collection of cache name(s) based on the invocation context.AbstractFallbackCacheOperationSource Abstract implementation ofCacheOperationthat caches attributes for methods and implements a fallback policy: 1. specific target method; 2. target class; 3. declaring method; 4. declaring class/interface.BeanFactoryCacheOperationSourceAdvisor Advisor driven by aCacheOperationSource, used to include a cache advice bean for methods that are cacheable.CacheableOperation Class describing a cache 'cacheable' operation.CacheableOperation.Builder CacheAspectSupport Base class for caching aspects, such as theCacheInterceptoror an AspectJ aspect.CacheAspectSupport.CacheOperationMetadata Metadata of a cache operation that does not depend on a particular invocation which makes it a good candidate for caching.CacheEvictOperation Class describing a cache 'evict' operation.CacheEvictOperation.Builder CacheInterceptor AOP Alliance MethodInterceptor for declarative cache management using the common Spring caching infrastructure (Cache).CacheOperation Base class for cache operations.CacheOperation.Builder CacheProxyFactoryBean Proxy factory bean for simplified declarative caching handling.CachePutOperation Class describing a cache 'put' operation.CachePutOperation.Builder CompositeCacheOperationSource CompositeCacheOperationSourceimplementation that iterates over a given array ofCacheOperationSourceinstances.DefaultKeyGenerator 已过时。 as of Spring 4.0, in favor ofSimpleKeyGeneratoror customKeyGeneratorimplementations based on hash codesNamedCacheResolver ACacheResolverthat forces the resolution to a configurable collection of name(s) against a givenCacheManager.NameMatchCacheOperationSource SimpleCacheOperationSourceimplementation that allows attributes to be matched by registered name.SimpleCacheErrorHandler A simpleCacheErrorHandlerthat does not handle the exception at all, simply throwing it back at the client.SimpleCacheResolver A simpleCacheResolverthat resolves theCacheinstance(s) based on a configurableCacheManagerand the name of the cache(s) as provided bygetCacheNames()SimpleKey A simple key as returned from theSimpleKeyGenerator.SimpleKeyGenerator Simple key generator.异常错误概要 异常错误 说明 CacheOperationInvoker.ThrowableWrapper Wrap any exception thrown while invokingCacheOperationInvoker.invoke().