Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions content/develop/using-commands/transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ new race. This form of locking is called _optimistic locking_.
In many use cases, multiple clients will be accessing different keys,
so collisions are unlikely – usually there's no need to repeat the operation.

Starting with version 8.4, Redis offers new atomic compare-and-set and compare-and-delete commands for string keys.
A client can use a single ([`SET`]({{< relref "/commands/set" >}}) command with the `IFEQ`/`IFNE`/`IFDEQ`/`IFDNE` options to atomically update a string key only if its value has not changed since it was fetched.
This is much simpler and faster.
Similarly, a client can use a single `[`DELEX`]({{< relref "/commands/delex" >}})` command for compare-and-delete: atomically deleting a string key if its value hasn't changed since it was fetched.

## WATCH explained

So what is [`WATCH`]({{< relref "/commands/watch" >}}) really about? It is a command that will
Expand Down
Loading