Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

READWRITE

Last updated
READWRITE
Group
Cluster
Complexity
O(1)
Arity
1 (exactly, counting the command name)
Flags
fast
HotKV Cloud
All plans
On-Premise
no license needed

READWRITE undoes READONLY for the current connection. Afterwards a replica answers every command on a key with -MOVED to its primary again, which is the default for a new connection.

Simple string OK in RESP2 and RESP3. With cluster mode off: ERR This instance has cluster support disabled.

10.0.0.4:6379> READONLY
OK
10.0.0.4:6379> GET user:1000
"alice"
10.0.0.4:6379> READWRITE
OK
10.0.0.4:6379> GET user:1000
(error) MOVED 1649 10.0.0.1:6379

Same as Redis 7 and Valkey 8.

READONLY, ASKING

In a cluster: Keys, slots and commands in a cluster