Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Schranz <alexander@sulu.io>2019-10-14 23:26:33 +0300
committerMichael Grunder <michael.grunder@gmail.com>2019-10-15 02:13:14 +0300
commit4ab1f940d8da38f78a9cd92b27cabc5230e9bac2 (patch)
tree2baad106c8e58630d934a2eb8b6a3004b4c6eaa8 /README.markdown
parent99ec24b361658a98c12bfb4fd29cc16f9a7ec24c (diff)
Fix example
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown10
1 files changed, 4 insertions, 6 deletions
diff --git a/README.markdown b/README.markdown
index 38a65153..bca54da1 100644
--- a/README.markdown
+++ b/README.markdown
@@ -2835,13 +2835,11 @@ $redis->zPopMax(string $key, int $count): array
##### *Example*
~~~php
-/* Wait up to 5 seconds to pop the *lowest* scoring member from sets `zs1` and `zs2`. */
-$redis->bzPopMin(['zs1', 'zs2'], 5);
-$redis->bzPopMin('zs1', 'zs2', 5);
+/* Pop the *lowest* scoring member from set `zs1`. */
+$redis->zPopMin('zs1', 5);
-/* Wait up to 5 seconds to pop the *highest* scoring member from sets `zs1` and `zs2` */
-$redis->bzPopMax(['zs1', 'zs2'], 5);
-$redis->bzPopMax('zs1', 'zs2', 5);
+/* Pop the *highest* scoring member from set `zs1`. */
+$redis->zPopMax('zs1', 5);
~~~
### zRange