conditional write

A write that only succeeds if the current value still matches a stated condition, such as the key being absent.

In more detail

Conditional writes protect small invariants in a key-value store, such as taking a lock only when it is free or claiming an idempotency key once. They make check then act atomic.

Related terms

Taught in

References