public interface JCacheConfigurer extends CachingConfigurer
CachingConfigurer for the JSR-107 implementation.
To be implemented by classes annotated with
EnableCaching that wish
or need to specify explicitly how exception caches are resolved for
annotation-driven cache management. Consider extending JCacheConfigurerSupport,
which provides a stub implementation of all interface methods.
See EnableCaching for
general examples and context; see exceptionCacheResolver() for
detailed instructions.
CachingConfigurer,
JCacheConfigurerSupport,
EnableCaching| Modifier and Type | Method and Description |
|---|---|
CacheResolver |
exceptionCacheResolver()
Return the
CacheResolver bean to use to resolve exception caches for
annotation-driven cache management. |
cacheManager, cacheResolver, errorHandler, keyGeneratorCacheResolver exceptionCacheResolver()
CacheResolver bean to use to resolve exception caches for
annotation-driven cache management. Implementations must explicitly declare
@Bean, e.g.
@Configuration
@EnableCaching
public class AppConfig extends JCacheConfigurerSupport {
@Bean // important!
@Override
public CacheResolver exceptionCacheResolver() {
// configure and return CacheResolver instance
}
// ...
}
See EnableCaching for more complete examples.