接口 JCacheConfigurer
- 所有超级接口:
CachingConfigurer
- 所有已知实现类:
JCacheConfigurerSupport
public interface JCacheConfigurer extends CachingConfigurer
Extension ofCachingConfigurer
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 extendingJCacheConfigurerSupport
, which provides a stub implementation of all interface methods.See
EnableCaching
for general examples and context; seeexceptionCacheResolver()
for detailed instructions.- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll
- 另请参阅:
CachingConfigurer
,JCacheConfigurerSupport
,EnableCaching
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 CacheResolver
exceptionCacheResolver()
Return theCacheResolver
bean to use to resolve exception caches for annotation-driven cache management.从接口继承的方法 org.springframework.cache.annotation.CachingConfigurer
cacheManager, cacheResolver, errorHandler, keyGenerator
方法详细资料
exceptionCacheResolver
CacheResolver exceptionCacheResolver()
Return theCacheResolver
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 } // ... }
SeeEnableCaching
for more complete examples.