READWRITE
Syntax
READWRITE
- Available since:
- Redis Open Source 3.0.0
- Time complexity:
- O(1)
- ACL categories:
-
@fast,@connection, - Compatibility:
- Redis Enterprise and Redis Cloud compatibility
Disables read queries for a connection to a Redis Cluster replica node.
Read queries against a Redis Cluster replica node are disabled by default,
but you can use the READONLY command to change this behavior on a per-
connection basis. The READWRITE command resets the readonly mode flag
of a connection back to readwrite.
Redis Enterprise and Redis Cloud compatibility
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ❌ Standard |
❌ Standard |
Return information
Simple string reply:
OK.