wait
WAIT
WAIT numslaves timeout
This command blocks the current client until all the previous write commands are successfully transferred and acknowledged by at least the specified number of slaves. If the timeout, specified in milliseconds, is reached, the command returns even if the specified number of slaves were not yet reached.
The command will always return the number of slaves that acknowledged the write commands sent before the WAIT command, both in the case where the specified number of slaves are reached, or when the timeout is reached.
A few remarks:
- When WAIT returns, all the previous write commands sent in the context of the current connection are guaranteed to be received by the number of slaves r