org.springframework.cache.interceptor

## 类 CacheOperation

- java.lang.Object
- - org.springframework.cache.interceptor.CacheOperation

- 所有已实现的接口:
    BasicOperation
  直接已知子类:
    CacheableOperation, CacheEvictOperation, CachePutOperation

      public abstract class CacheOperation
      extends Object
      implements BasicOperation

  Base class for cache operations.
  从以下版本开始:
    3.1
  作者:
    Costin Leau, Stephane Nicoll, Marcin Kamionowski

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static class` | `CacheOperation.Builder`

  - ### 构造器概要

    构造器
    限定符 | 构造器和说明
    --- | ---
    `protected` | `CacheOperation(CacheOperation.Builder b)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `equals(Object other)` This implementation compares the `toString()` results.
    `String` | `getCacheManager()`
    `Set<String>` | `getCacheNames()` Return the cache name(s) associated with the operation.
    `String` | `getCacheResolver()`
    `String` | `getCondition()`
    `String` | `getKey()`
    `String` | `getKeyGenerator()`
    `String` | `getName()`
    `int` | `hashCode()` This implementation returns `toString()`'s hash code.
    `String` | `toString()` Return an identifying description for this cache operation.

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### CacheOperation

          protected CacheOperation(CacheOperation.Builder b)

      从以下版本开始:
        4.3

  - ### 方法详细资料

    - #### getName

          public String getName()

    - #### getCacheNames

          public Set<String> getCacheNames()

      从接口复制的说明: `BasicOperation`
      Return the cache name(s) associated with the operation.
      指定者:
        `getCacheNames` 在接口中 `BasicOperation`

    - #### getKey

          public String getKey()

    - #### getKeyGenerator

          public String getKeyGenerator()

    - #### getCacheManager

          public String getCacheManager()

    - #### getCacheResolver

          public String getCacheResolver()

    - #### getCondition

          public String getCondition()

    - #### equals

          public boolean equals(Object other)

      This implementation compares the `toString()` results.
      覆盖:
        `equals` 在类中 `Object`
      另请参阅:
        `toString()`

    - #### hashCode

          public int hashCode()

      This implementation returns `toString()`'s hash code.
      覆盖:
        `hashCode` 在类中 `Object`
      另请参阅:
        `toString()`

    - #### toString

          public final String toString()

      Return an identifying description for this cache operation.

      Returned value is produced by calling `CacheOperation.Builder.getOperationDescription()` during object construction. This method is used in `hashCode()` and `equals(java.lang.Object)`.

      覆盖:
        `toString` 在类中 `Object`
      另请参阅:
        `CacheOperation.Builder.getOperationDescription()`