Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ab1f94

Browse files
alexander-schranzmichael-grunder
authored andcommitted
Fix example
1 parent 99ec24b commit 4ab1f94

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

README.markdown

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2835,13 +2835,11 @@ $redis->zPopMax(string $key, int $count): array
28352835

28362836
##### *Example*
28372837
~~~php
2838-
/* Wait up to 5 seconds to pop the *lowest* scoring member from sets `zs1` and `zs2`. */
2839-
$redis->bzPopMin(['zs1', 'zs2'], 5);
2840-
$redis->bzPopMin('zs1', 'zs2', 5);
2838+
/* Pop the *lowest* scoring member from set `zs1`. */
2839+
$redis->zPopMin('zs1', 5);
28412840

2842-
/* Wait up to 5 seconds to pop the *highest* scoring member from sets `zs1` and `zs2` */
2843-
$redis->bzPopMax(['zs1', 'zs2'], 5);
2844-
$redis->bzPopMax('zs1', 'zs2', 5);
2841+
/* Pop the *highest* scoring member from set `zs1`. */
2842+
$redis->zPopMax('zs1', 5);
28452843
~~~
28462844

28472845
### zRange

0 commit comments

Comments
 (0)