Redis Transactions: WATCH key [key ...]
Description
Redis WATCH command is used to mark the given keys to be watched for conditional execution of a transaction.
Syntax:
WATCH key [key ...]
Available since
2.2.0.
Return Value
Simple string reply: always OK.
Return Value Type
String
Example:
127.0.0.1:6379> WATCH zset OK 127.0.0.1:6379> MULTI OK 127.0.0.1:6379> ZREM zset element QUEUED 127.0.0.1:6379> EXEC 1) (integer) 0
Previous:
UNWATCH
Next:
Redis Scripting EVAL
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework