Transactions Watch
# Redis Watch Command
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0);)
* (javascript:void(0))
Redis Tutorial
(#)(#)(#)(#)(#)
## Redis Commands
(#)(#)(#)(#)(#)(#)(#)(#)[Redis Pub/Sub](#)(#)(#)(#)(#)(#)(#)
## Redis Advanced Tutorial
(#)(#)(#)(#)(#)(#)(#)(#)
[](#)(#)
(#)[](#)
# Redis Watch Command
!(#)(#)
The Redis WATCH command is used to monitor one (or multiple) keys. If any of these keys is modified by other commands before the transaction executes, the transaction will be aborted.
### Syntax
The basic syntax of the Redis WATCH command is as follows:
WATCH key [key ...]
### Available Versions
>= 2.2.0
### Return Value
Always returns OK.
### Example
redis> WATCH lock lock_times OK
!(#)(#)
YouTip