SLAVEOF
Deprecated: use REPLICAOF instead.
SLAVEOF NO ONE SLAVEOF host port
- Group
- Server
- Arity
- 3 (exactly, counting the command name)
- Flags
- admin
- HotKV Cloud
- All plans
- On-Premise
- no license needed
SLAVEOF is the old name of REPLICAOF and behaves
exactly like it: SLAVEOF NO ONE promotes a replica to primary, and
SLAVEOF host port makes the server a replica of the HotKV server at that
address. See REPLICAOF for the replies.
Return value
Section titled “Return value”The same as REPLICAOF.
Examples
Section titled “Examples”10.0.0.6:6379> SLAVEOF NO ONEOKIn HotKV Cloud, the CLI tab of the panel does not run SLAVEOF.
Compatibility
Section titled “Compatibility”Kept for older clients, as in Redis 7 and Valkey 8, with the same differences as REPLICAOF.
See also
Section titled “See also”In a cluster: Replicas and failover
Was this page helpful?
Thanks for the feedback.