Top Description Interfaces Annotations Classes
[default module]

Package org.springframework.cache.annotation

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Annotations and supporting classes for declarative cache management. Hooked into Spring's cache interception infrastructure via org.springframework.cache.interceptor.CacheOperationSource.

Interface Summary

Modifier and TypeInterface and Description
public interface
CacheAnnotationParser

Strategy interface for parsing known caching annotation types.

public interface
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.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
Cacheable

Annotation indicating that the result of invoking a method (or all methods in a class) can be cached.

public @interface
CacheConfig

@CacheConfig provides a mechanism for sharing common cache-related settings at the class level.

public @interface
CacheEvict

Annotation indicating that a method (or all methods on a class) triggers a cache evict operation.

public @interface
CachePut

Annotation indicating that a method (or all methods on a class) triggers a cache put operation.

public @interface
Caching

Group annotation for multiple cache annotations (of different or the same type).

public @interface
EnableCaching

Enables Spring's annotation-driven cache management capability, similar to the support found in Spring's <cache:*> XML namespace.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractCachingConfiguration

Abstract base @Configuration class providing common structure for enabling Spring's annotation-driven cache management capability.

public class
AnnotationCacheOperationSource

Implementation of the CacheOperationSource interface for working with caching metadata in annotation format.

public class
CachingConfigurationSelector

Selects which implementation of AbstractCachingConfiguration should be used based on the value of EnableCaching#mode on the importing @Configuration class.

public class
CachingConfigurerSupport

Deprecated since 6.0. as of 6.0 in favor of implementing CachingConfigurer directly
An implementation of CachingConfigurer with empty methods allowing subclasses to override only the methods they're interested in.
public class
ProxyCachingConfiguration

@Configuration class that registers the Spring infrastructure beans necessary to enable proxy-based annotation-driven cache management.

public class
SpringCacheAnnotationParser

Strategy implementation for parsing Spring's Caching, Cacheable, CacheEvict, and CachePut annotations.