Class SimpleExceptionCacheResolver

java.lang.Object
org.springframework.cache.interceptor.AbstractCacheResolver
org.springframework.cache.jcache.interceptor.SimpleExceptionCacheResolver
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.cache.interceptor.CacheResolver

public class SimpleExceptionCacheResolver extends org.springframework.cache.interceptor.AbstractCacheResolver
A simple CacheResolver that resolves the exception cache based on a configurable CacheManager and the name of the cache: CacheResultOperation.getExceptionCacheName().
Since:
4.1
Author:
Stephane Nicoll
See Also:
  • CacheResultOperation.getExceptionCacheName()
  • Constructor Details

    • SimpleExceptionCacheResolver

      public SimpleExceptionCacheResolver(org.springframework.cache.CacheManager cacheManager)
  • Method Details

    • getCacheNames

      protected @Nullable Collection<String> getCacheNames(org.springframework.cache.interceptor.CacheOperationInvocationContext<?> context)
      Specified by:
      getCacheNames in class org.springframework.cache.interceptor.AbstractCacheResolver