目录搜索
文字
分享

Redis Sync 命令


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

语法

redis SYNC 命令基本语法如下:

1

redis 127.0.0.1:6379> SYNC 

可用版本

>= 1.0.0

返回值

不明确。

实例

1

2

3

4

5

6

7

8

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"