kevy4.0

REPLICAOF

Make this server a replica of another, or promote it with NO ONE.

REPLICAOF host port | NO ONE
Group
Replication
Since
1.0.0
Arity
exactly 3
Flags
write admin

Complexity

O(1) at the command; the full resync that follows is O(N) in the background

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Differs

the port argument is the primary's REPLICATION port base, not its client port (the default base is client port + 10000); chain replication is rejected

See also

FAILOVERREPL.TOKENREPL.WAITROLESLAVEOFWAIT

← All commands