org.springframework.cache.interceptor

## Class CacheableOperation

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

-     public class CacheableOperation
      extends CacheOperation

  Class describing a cache 'cacheable' operation.
  Since:
    3.1
  Author:
    Costin Leau, Phillip Webb

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CacheableOperation()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected StringBuilder` | `getOperationDescription()` Return an identifying description for this caching operation.
    `String` | `getUnless()`
    `void` | `setUnless(String unless)`

    - ### Methods inherited from class org.springframework.cache.interceptor.CacheOperation

      `equals, getCacheNames, getCondition, getKey, getName, hashCode, setCacheName, setCacheNames, setCondition, setKey, setName, toString`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### CacheableOperation

          public CacheableOperation()

  - ### Method Detail

    - #### getUnless

          public String getUnless()

    - #### setUnless

          public void setUnless(String unless)

    - #### getOperationDescription

          protected StringBuilder getOperationDescription()

      Description copied from class: `CacheOperation`
      Return an identifying description for this caching operation.

      Available to subclasses, for inclusion in their `toString()` result.

      Overrides:
        `getOperationDescription` in class `CacheOperation`