Skip to content

Commit ff87523

Browse files
committed
Add WAIT command
1 parent 08c5ab7 commit ff87523

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Redis.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,6 +1687,17 @@ public function bgsave( ) {}
16871687
*/
16881688
public function lastSave( ) {}
16891689

1690+
/**
1691+
* Blocks the current client until all the previous write commands are successfully transferred and
1692+
* acknowledged by at least the specified number of slaves.
1693+
* @param int $numSlaves Number of slaves that need to acknowledge previous write commands.
1694+
* @param int $timeout Timeout in milliseconds.
1695+
* @return int The command returns the number of slaves reached by all the writes performed in the
1696+
* context of the current connection.
1697+
* @link http://redis.io/commands/wait
1698+
* @example $redis->wait(2, 1000);
1699+
*/
1700+
public function wait( $numSlaves, $timeout ) {}
16901701

16911702
/**
16921703
* Returns the type of data pointed by a given key.

0 commit comments

Comments
 (0)