org.springframework.cache.interceptor

## Class CachePutOperation

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

-     public class CachePutOperation
      extends CacheOperation

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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CachePutOperation()`

  - ### 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

    - #### CachePutOperation

          public CachePutOperation()

  - ### 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`