程序包 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 providingCacheOperationinstance(s) based on a givenCacheAnnotationParser.CacheAnnotationParser Strategy interface for parsing known caching annotation types.CachingConfigurer Interface to be implemented by @Configurationclasses annotated with @EnableCachingthat wish or need to specify explicitly how caches are resolved and how keys are generated for annotation-driven cache management.类概要 类 说明 AbstractCachingConfiguration Abstract base@Configurationclass providing common structure for enabling Spring's annotation-driven cache management capability.AnnotationCacheOperationSource Implementation of theCacheOperationSourceinterface for working with caching metadata in annotation format.CachingConfigurationSelector Selects which implementation ofAbstractCachingConfigurationshould be used based on the value ofEnableCaching.mode()on the importing@Configurationclass.CachingConfigurerSupport An implementation ofCachingConfigurerwith empty methods allowing sub-classes to override only the methods they're interested in.ProxyCachingConfiguration @Configurationclass that registers the Spring infrastructure beans necessary to enable proxy-based annotation-driven cache management.SpringCacheAnnotationParser Strategy implementation for parsing Spring'sCaching,Cacheable,CacheEvict, andCachePutannotations.注释类型概要 注释类型 说明 Cacheable Annotation indicating that the result of invoking a method (or all methods in a class) can be cached.CacheConfig @CacheConfigprovides 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 evictoperation.CachePut Annotation indicating that a method (or all methods on a class) triggers acache putoperation.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.