mirror of https://github.com/ledisdb/ledisdb.git
update document
This commit is contained in:
parent
99391a3435
commit
2cc4a7056b
|
@ -1491,20 +1491,33 @@ ledis> ZTTL mset
|
||||||
|
|
||||||
## Replication
|
## Replication
|
||||||
|
|
||||||
### SLAVEOF
|
### SLAVEOF host port
|
||||||
**Return value**
|
|
||||||
|
Changes the replication settings of a slave on the fly. If the server is already acting as slave, SLAVEOF NO ONE will turn off the replication.
|
||||||
|
|
||||||
|
SLAVEOF host port will make the server a slave of another server listening at the specified host and port.
|
||||||
|
|
||||||
|
If a server is already a slave of a master, SLAVEOF host port will stop the replication against the old and start the synchronization against the new one, discarding the old dataset.
|
||||||
|
|
||||||
|
|
||||||
**Examples**
|
|
||||||
### FULLSYNC
|
### FULLSYNC
|
||||||
**Return value**
|
|
||||||
|
|
||||||
**Examples**
|
Inner command, starts a fullsync from the master set by SLAVEOF.
|
||||||
### SYNC
|
|
||||||
|
FULLSYNC will first try to sync all data from the master, save in local disk, then discard old dataset and load new one.
|
||||||
|
|
||||||
**Return value**
|
**Return value**
|
||||||
|
|
||||||
**Examples**
|
**Examples**
|
||||||
|
|
||||||
|
|
||||||
|
### SYNC index offset
|
||||||
|
|
||||||
|
Inner command, syncs the new changed from master set by SLAVEOF at offset in binlog.index file.
|
||||||
|
|
||||||
|
**Return value**
|
||||||
|
|
||||||
|
**Examples**
|
||||||
|
|
||||||
## Server
|
## Server
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue