Skip to main content

READWRITE

Syntax​

READWRITE

Time complexity: O(1)

ACL categories: @connection, @fast

In Valkey, READWRITE turns off the read-only mode that READONLY turns on for a connection to a cluster replica.

Dragonfly has no per-connection read-only mode, so READWRITE does not change the connection. With --cluster_mode=emulated, it replies OK. With cluster mode off, it returns ERR Cluster is disabled. Enabled via passing --cluster_mode=emulated|yes.

Return​

Simple string reply: OK with --cluster_mode=emulated.

Error reply: with cluster mode off.

Examples​

A node started with --cluster_mode=emulated:

dragonfly> READWRITE
OK

See also​

READONLY | CLUSTER | Cluster Mode