- Usage:
-
EXEC
- Complexity:
- Depends on commands in the transaction
- Since:
- 1.2.0
-
Array reply: each element being the reply to each of the commands in the atomic transaction.
-
Nil reply: the transaction was aborted because a
WATCH
ed key was touched. -
Array reply: each element being the reply to each of the commands in the atomic transaction.
-
Null reply: the transaction was aborted because a
WATCH
ed key was touched.
Executes all previously queued commands in a transaction and restores the connection state to normal.
When using WATCH
, EXEC
will execute commands only if the watched keys were
not modified, allowing for a check-and-set mechanism.
RESP2 Reply
One of the following:
RESP3 Reply
One of the following: