slave
UK [sleɪv] US [slev]
n. slave;…. A slave, a person obsessed with...; a person controlled like a slave, hard labor; [machine] driven device
vi. Work like a slave, do hard labor; buy and sell slaves, transport slaves
Third person singular: slaves Plural: slaves Present participle: slaving Past tense: slaved Past participle: slaved
##of
UK[əv] 美[ʌv] prep.About; Belonging to; Made ofredis SLAVEOF command syntax
Function: The SLAVEOF command is used to dynamically modify the behavior of the replication function while Redis is running.
Syntax: SLAVEOF host port
Description:By executing the SLAVEOF host port command, you can convert the current server into a slave server of the specified server ( slave server). If the current server is already a slave server of a master server, then executing SLAVEOF host port will cause the current server to stop synchronizing with the old master server, discard the old data set, and start synchronizing with the new master server. In addition, executing the command SLAVEOF NO ONE on a slave server will cause the slave server to turn off the replication function and transition from the slave server back to the master server. The original synchronized data set will not be discarded. Utilizing the feature of "SLAVEOF NO ONE will not discard the synchronized data set", when the master server fails, the slave server can be used as the new master server, thereby achieving uninterrupted operation.
Available versions: >= 1.0.0
Time complexity: SLAVEOF host port, O(N), N means synchronization is required amount of data. SLAVEOF NO ONE , O(1).
Return: Always returns OK.
redis SLAVEOF command example
redis> SLAVEOF 127.0.0.1 6379 OK redis> SLAVEOF NO ONE OK