net.spy.memcached.ops.CASOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spymemcached Show documentation
Show all versions of spymemcached Show documentation
A simple, asynchronous, single-threaded Memcached client written in java.
The newest version!
package net.spy.memcached.ops;
/**
* Operation that represents compare-and-swap.
*/
public interface CASOperation extends KeyedOperation {
/**
* Get the type of storage used by this CASOperation.
*/
StoreType getStoreType();
/**
* Get the CAS value advised for this operation.
*/
long getCasValue();
/**
* Get the flags to be set for this operation.
*/
int getFlags();
/**
* Get the expiration to be set for this operation.
*/
int getExpiration();
/**
* Get the bytes to be set during this operation.
*
*
* Note, this returns an exact reference to the bytes and the data
* must not be modified.
*
*/
byte[] getBytes();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy