exec.3valkey - Man Page
Executes all commands in a transaction.
Synopsis
EXEC
Description
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.
Reply
Resp2
One of the following:
- valkey-protocol(7) Array reply: each element being the reply to each of the commands in the atomic transaction.
- valkey-protocol(7) Nil reply: the transaction was aborted because a
WATCH
ed key was touched.
Resp3
One of the following:
- valkey-protocol(7) Array reply: each element being the reply to each of the commands in the atomic transaction.
- valkey-protocol(7) Null reply: the transaction was aborted because a
WATCH
ed key was touched.
Complexity
Depends on commands in the transaction
Acl Categories
@slow @transaction
History
- Available since: 1.2.0
See Also
discard(3valkey), multi(3valkey), unwatch(3valkey), watch(3valkey)
Referenced By
atexit(3), clearenv(3), collectd-exec(5), confstr(3), cwmrc(5), environ(7), execve(2), ffcall-vacall(3), fim(1), gentoo(1), getpid(2), glob(3), gpgwrap(1), guestfs-hacking(1), haveged(8), ibv_fork_init(3), imake(1), libexpect(3), libssh2_sftp_statvfs(3), lttng-ust(3), miltertest(8), mold(1), muttrc(5), neomuttrc(5), nvidia-modprobe(1), on_exit(3), pam_getenvlist(3), perlfunc(1), pmlogger(1), posix_spawn(3), procenv(1), ptrace(2), rssh(1), sec(1), seccomp(2), signal-safety(7), statfs(2), statvfs(3), stdin(3), sudo.conf(5), sudoers(5), sysconf(3), system(3), systemd.exec(5), vfork(2), x11vnc(1), xargs(1).