EXEC
Syntax
EXEC
- Available since:
- Redis Open Source 1.2.0
- Time complexity:
- Depends on commands in the transaction
- ACL categories:
-
@slow,@transaction, - Compatibility:
- Redis Enterprise and Redis Cloud compatibility
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.
Redis Enterprise and Redis Cloud compatibility
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard |
✅ Standard |
Return information
One of the following:
- Array reply: each element being the reply to each of the commands in the atomic transaction.
- Nil reply: the transaction was aborted because a
WATCHed key was touched.