Latest web development tutorials

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服務器