org.springframework.cache.interceptor

## 接口 CacheResolver

- 所有已知实现类:
    AbstractCacheResolver, NamedCacheResolver, SimpleCacheResolver
  函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

      @FunctionalInterface
      public interface CacheResolver

  Determine the `Cache` instance(s) to use for an intercepted method invocation.

  Implementations must be thread-safe.

  从以下版本开始:
    4.1
  作者:
    Stephane Nicoll

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `Collection<? extends Cache>` | `resolveCaches(CacheOperationInvocationContext<?> context)` Return the cache(s) to use for the specified invocation.

- - ### 方法详细资料

    - #### resolveCaches

          Collection<? extends Cache> resolveCaches(CacheOperationInvocationContext<?> context)

      Return the cache(s) to use for the specified invocation.
      参数:
        `context` - the context of the particular invocation
      返回:
        the cache(s) to use (never `null`)
      抛出:
        `IllegalStateException` - if cache resolution failed