watch.3valkey - Man Page

Monitors changes to keys to determine the execution of a transaction.

Synopsis

WATCH key [key...]

Description

Marks the given keys to be watched for conditional execution of a transaction.

Reply

valkey-protocol(7) Simple string reply: OK.

Complexity

O(1) for every key.

Acl Categories

@fast @transaction

History

See Also

discard(3valkey), exec(3valkey), multi(3valkey), unwatch(3valkey)

Info

2024-09-23 8.0.0 Valkey Command Manual