Latest web development tutorials

Redis Sync command

Redis server

Redis Sync command is used to synchronize master and slave servers.

grammar

redis SYNC command basic syntax is as follows:

redis 127.0.0.1:6379> SYNC  

Available versions

> = 1.0.0

return value

unclear.

Examples

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 server