org.springframework.cache.interceptor

## 接口 CacheOperationInvoker

- 函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

      @FunctionalInterface
      public interface CacheOperationInvoker

  Abstract the invocation of a cache operation.

  Does not provide a way to transmit checked exceptions but provide a special exception that should be used to wrap any exception that was thrown by the underlying invocation. Callers are expected to handle this issue type specifically.

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

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 接口和说明
    --- | ---
    `static class` | `CacheOperationInvoker.ThrowableWrapper` Wrap any exception thrown while invoking `invoke()`.

  - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `invoke()` Invoke the cache operation defined by this instance.

- - ### 方法详细资料

    - #### invoke

          Object invoke()
                 throws CacheOperationInvoker.ThrowableWrapper

      Invoke the cache operation defined by this instance. Wraps any exception that is thrown during the invocation in a `CacheOperationInvoker.ThrowableWrapper`.
      返回:
        the result of the operation
      抛出:
        `CacheOperationInvoker.ThrowableWrapper` - if an error occurred while invoking the operation