public PutCompareExchangeValueOperation(string key, T value, long index)
||Object identifier under which value is saved, unique in the database scope across the cluster. This string can be up to 512 bytes.
|The value to be saved for the specified key.
0 if creating a new key
* The current version of Value when updating a value for an existing key.
public class CompareExchangeResult<T>
public bool Successful;
public T Value;
public long Index;
||* True if the save operation has completed successfully
* False if the save operation failed
|* The value that was saved if operation was successful
* The currently existing value in the server upon failure
||* The version number of the value that was saved upon success
* The currently existing version number in the server upon failure
When calling the 'Put' operation, the index from the request is compared to the index that is currently stored in the server (compare stage).
The value is updated only if the two are equal (exchange stage).