org.springframework.cache.jcache.config

Interface JCacheConfigurer

    • Method Detail

      • exceptionCacheResolver

        @Nullable
        CacheResolver exceptionCacheResolver()
        Return the 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.