Skip to content

Commit 3374ed2

Browse files
committed
add comment
1 parent 599fba7 commit 3374ed2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

redis/commands/core.py

+12
Original file line numberDiff line numberDiff line change
@@ -3264,6 +3264,18 @@ def bzmpop(
32643264
min_max: str,
32653265
count: Optional[int] = 1,
32663266
) -> Optional[list]:
3267+
"""
3268+
Pop ``count`` values (default 1) off of the first non-empty sorted set
3269+
named in the ``keys`` list.
3270+
3271+
If none of the sorted sets in ``keys`` has a value to pop,
3272+
then block for ``timeout`` seconds, or until a member gets added
3273+
to one of the sorted sets.
3274+
3275+
If timeout is 0, then block indefinitely.
3276+
3277+
For more information check https://redis.io/commands/bzmpop
3278+
"""
32673279
args = [timeout, num_keys] + keys + [min_max]
32683280
if count != 1:
32693281
args.extend(["COUNT", count])

0 commit comments

Comments
 (0)