What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

READWRITE

Enables read-write queries for a connection to a Valkey replica node.

Usage
READWRITE
Complexity
O(1)
Since
3.0.0
ACL Categories
@connection, @fast
Command flags
FAST, LOADING, STALE

Disables read queries for a connection to a Valkey replica node.

Read queries against a Valkey Cluster replica node are disabled by default.

For standalone replica nodes, since Valkey 8.0, read queries are also disabled for clients that have executed the CLIENT CAPA redirect command.

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.

Replies

RESP2

RESP3