All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.spy.memcached.CASResponse Maven / Gradle / Ivy

The newest version!
package net.spy.memcached;

/**
 * Response codes for a CAS operation.
 */
public enum CASResponse {
  /**
   * Status indicating that the CAS was successful and the new value is
   * stored in the cache.
   */
  OK,
  /**
   * Status indicating the value was not found in the cache (an add
   * operation may be issued to store the value).
   */
  NOT_FOUND,
  /**
   * Status indicating the value was found in the cache, but exists with a
   * different CAS value than expected.  In this case, the value must be
   * refetched and the CAS operation tried again.
   */
  EXISTS,
  /**
   * Status indicating the CAS operation was cancelled
   * by java client internal.
   */
  CANCELED,
  /**
   * Status indicating the undefined response was delivered from the cache.
   */
  UNDEFINED
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy