kevy

REPLICAOF

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

语法REPLICAOF host port | NO ONE
分组replication
参数个数3
起始版本1.0.0
标志write, admin
复杂度O(1) at the command; the full resync that follows is O(N) in the background
Redis 兼容性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

← 全部命令