REPLICAOF
Make this server a replica of another, or promote it with NO ONE.
REPLICAOF host port | NO ONE
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