Redis – Server Sync Command

  • Post author:
  • Post category:Redis
  • Post comments:0 Comments

Redis SYNC command is used to sync slave to master.

Return Value

Simple string reply.

Syntax

Following is the basic syntax of Redis SYNC command.

redis 127.0.0.1:6379> SYNC

Example

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" 

Leave a Reply