程序包 org.springframework.cache.annotation
Annotations and supporting classes for declarative cache management. Hooked into Spring's cache interception infrastructure via
CacheOperationSource
.接口概要 接口 说明 AnnotationCacheOperationSource.CacheOperationProvider Callback interface providingCacheOperation
instance(s) based on a givenCacheAnnotationParser
.CacheAnnotationParser Strategy interface for parsing known caching annotation types.CachingConfigurer Interface to be implemented by @Configuration
classes annotated with @EnableCaching
that wish or need to specify explicitly how caches are resolved and how keys are generated for annotation-driven cache management.类概要 类 说明 AbstractCachingConfiguration Abstract base@Configuration
class providing common structure for enabling Spring's annotation-driven cache management capability.AnnotationCacheOperationSource Implementation of theCacheOperationSource
interface for working with caching metadata in annotation format.CachingConfigurationSelector Selects which implementation ofAbstractCachingConfiguration
should be used based on the value ofEnableCaching.mode()
on the importing@Configuration
class.CachingConfigurerSupport An implementation ofCachingConfigurer
with empty methods allowing sub-classes to override only the methods they're interested in.ProxyCachingConfiguration @Configuration
class that registers the Spring infrastructure beans necessary to enable proxy-based annotation-driven cache management.SpringCacheAnnotationParser Strategy implementation for parsing Spring'sCaching
,Cacheable
,CacheEvict
, andCachePut
annotations.注释类型概要 注释类型 说明 Cacheable Annotation indicating that the result of invoking a method (or all methods in a class) can be cached.CacheConfig @CacheConfig
provides a mechanism for sharing common cache-related settings at the class level.CacheEvict Annotation indicating that a method (or all methods on a class) triggers acache evict
operation.CachePut Annotation indicating that a method (or all methods on a class) triggers acache put
operation.Caching Group annotation for multiple cache annotations (of different or the same type).EnableCaching Enables Spring's annotation-driven cache management capability, similar to the support found in Spring's<cache:*>
XML namespace.