CompareAndSetAsync Method
CompareAndSetAsync(TKey, TValue, TValue)
Atomically compares serialized forms of existing value with expectedValue
, and sets
the newValue
if existing and expected values are equal.
Declaration
Task<bool> CompareAndSetAsync(TKey key, TValue expectedValue, TValue newValue)
Parameters
TKey | key | Key of the entry. |
TValue | expectedValue | Expected value map to |
TValue | newValue |
|