Package org.springframework.cache.annotation
@NullMarked
package org.springframework.cache.annotation
Annotations and supporting classes for declarative cache management.
Hooked into Spring's cache interception infrastructure via
CacheOperationSource
.-
ClassDescriptionAbstract base
@Configuration
class providing common structure for enabling Spring's annotation-driven cache management capability.Implementation of theCacheOperationSource
interface for working with caching metadata in annotation format.Callback interface providingCacheOperation
instance(s) based on a givenCacheAnnotationParser
.Annotation indicating that the result of invoking a method (or all methods in a class) can be cached.Strategy interface for parsing known caching annotation types.@CacheConfig
provides a mechanism for sharing common cache-related settings at the class level.Annotation indicating that a method (or all methods on a class) triggers acache evict
operation.Annotation indicating that a method (or all methods on a class) triggers acache put
operation.Group annotation for multiple cache annotations (of different or the same type).Selects which implementation ofAbstractCachingConfiguration
should be used based on the value ofEnableCaching.mode()
on the importing@Configuration
class.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.Deprecated.Enables Spring's annotation-driven cache management capability, similar to the support found in Spring's<cache:*>
XML namespace.@Configuration
class that registers the Spring infrastructure beans necessary to enable proxy-based annotation-driven cache management.Strategy implementation for parsing Spring'sCaching
,Cacheable
,CacheEvict
, andCachePut
annotations.
CachingConfigurer
directly