Redis Sync 命令

Redis 服务器

Redis Sync 命令用于同步主从服务器。

语法

redis SYNC 命令基本语法如下:

 redis 127.0.0.1:6379> SYNC 

可用版本

>= 1.0.0

返回值

不明确。

实例

 redis 127.0.0.1:6379> SYNC Entering slave output mode... (press Ctrl-C to quit) SYNC with master, discarding 18 bytes of bulk transfer... SYNC done. Logging commands from master. "PING" "PING" "PING" "PING" 

Redis 服务器