WATCH
Syntax
WATCH key [key ...]
- Available since:
- Redis Open Source 2.2.0
- Time complexity:
- O(1) for every key.
- ACL categories:
-
@fast,@transaction, - Compatibility:
- Redis Software and Redis Cloud compatibility
Marks the given keys to be watched for conditional execution of a transaction.
Redis Software and Redis Cloud compatibility
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard |
✅ Standard |
Return information
Simple string reply:
OK.