net.spy.memcached.CASMutation Maven / Gradle / Ivy
The newest version!
package net.spy.memcached;
/**
* Defines a mutation mechanism for a high-level CAS client interface.
*/
public interface CASMutation {
/**
* Get the new value to replace the current value.
*
* @param current the current value in the cache
* @return the replacement value
*/
T getNewValue(T current);
}