English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Redis Watch command is used to monitor one (or more) key, if this (or these) key is changed by other commands before the transaction is executed, the transaction will be interrupted
Basic Syntax of Redis Watch Command:
WATCH key [key ...]
>= 2.2.0
Always returns OK .
redis> WATCH lock lock_times OK