diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-04 07:19:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-04 07:19:32 +0000 |
commit | 7480e618ec785ba8a1c74c8a150cffe5880fb3bb (patch) | |
tree | 87422376dd9a7eee55850f0fce9a8bb4c13e44a2 /iredis/data/commands/brpop.md | |
parent | Adding upstream version 1.12.1. (diff) | |
download | iredis-df49d7c38b2b8498c93215691d16403b32becec8.tar.xz iredis-df49d7c38b2b8498c93215691d16403b32becec8.zip |
Adding upstream version 1.13.0.upstream/1.13.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/data/commands/brpop.md')
-rw-r--r-- | iredis/data/commands/brpop.md | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/iredis/data/commands/brpop.md b/iredis/data/commands/brpop.md index ca7df79..dfa2b91 100644 --- a/iredis/data/commands/brpop.md +++ b/iredis/data/commands/brpop.md @@ -1,7 +1,8 @@ -`BRPOP` is a blocking list pop primitive. It is the blocking version of `RPOP` -because it blocks the connection when there are no elements to pop from any of -the given lists. An element is popped from the tail of the first list that is -non-empty, with the given keys being checked in the order that they are given. +`BRPOP` is a blocking list pop primitive. +It is the blocking version of `RPOP` because it blocks the connection when there +are no elements to pop from any of the given lists. +An element is popped from the tail of the first list that is non-empty, with the +given keys being checked in the order that they are given. See the [BLPOP documentation][cb] for the exact semantics, since `BRPOP` is identical to `BLPOP` with the only difference being that it pops elements from @@ -13,15 +14,11 @@ the tail of a list instead of popping from the head. @array-reply: specifically: -- A `nil` multi-bulk when no element could be popped and the timeout expired. -- A two-element multi-bulk with the first element being the name of the key +* A `nil` multi-bulk when no element could be popped and the timeout expired. +* A two-element multi-bulk with the first element being the name of the key where an element was popped and the second element being the value of the popped element. -@history - -- `>= 6.0`: `timeout` is interpreted as a double instead of an integer. - @examples ``` |