summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/exec.md
blob: b35d04ab4c889721b6c4d54b7d7768f215319bdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Executes all previously queued commands in a [transaction][tt] and restores the
connection state to normal.

[tt]: /topics/transactions

When using `WATCH`, `EXEC` will execute commands only if the watched keys were
not modified, allowing for a [check-and-set mechanism][ttc].

[ttc]: /topics/transactions#cas

@return

@array-reply: each element being the reply to each of the commands in the atomic
transaction.

When using `WATCH`, `EXEC` can return a @nil-reply if the execution was aborted.