summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/exec.md
blob: b2f58fef8b910c29eabf7022715fd0daed38f3cb (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.