net.spy.memcached
Interface CASMutation<T>


public interface CASMutation<T>

Defines a mutation mechanism for a high-level CAS client interface.


Method Summary
 T getNewValue(T current)
          Get the new value to replace the current value.
 

Method Detail

getNewValue

T getNewValue(T current)
Get the new value to replace the current value.

Parameters:
current - the current value in the cache
Returns:
the replacement value