You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/python/glide/async_commands/core.py
+72Lines changed: 72 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2285,6 +2285,42 @@ async def zpopmax(
2285
2285
),
2286
2286
)
2287
2287
2288
+
asyncdefbzpopmax(
2289
+
self, keys: List[str], timeout: float
2290
+
) ->Optional[List[Union[str, float]]]:
2291
+
"""
2292
+
Pops the member with the highest score from the first non-empty sorted set, with the given keys being checked in
2293
+
the order that they are given. Blocks the connection when there are no members to remove from any of the given
2294
+
sorted sets.
2295
+
2296
+
When in cluster mode, all keys must map to the same hash slot.
2297
+
2298
+
`BZPOPMAX` is the blocking variant of `ZPOPMAX`.
2299
+
2300
+
`BZPOPMAX` is a client blocking command, see https://github.com/aws/glide-for-redis/wiki/General-Concepts#blocking-commands for more details and best practices.
2301
+
2302
+
See https://valkey.io/commands/bzpopmax for more details.
2303
+
2304
+
Args:
2305
+
keys (List[str]): The keys of the sorted sets.
2306
+
timeout (float): The number of seconds to wait for a blocking operation to complete.
2307
+
A value of 0 will block indefinitely.
2308
+
2309
+
Returns:
2310
+
Optional[List[Union[str, float]]]: An array containing the key where the member was popped out, the member itself,
2311
+
and the member score. If no member could be popped and the `timeout` expired, returns None.
Pops the member with the lowest score from the first non-empty sorted set, with the given keys being checked in
2361
+
the order that they are given. Blocks the connection when there are no members to remove from any of the given
2362
+
sorted sets.
2363
+
2364
+
When in cluster mode, all keys must map to the same hash slot.
2365
+
2366
+
`BZPOPMIN` is the blocking variant of `ZPOPMIN`.
2367
+
2368
+
`BZPOPMIN` is a client blocking command, see https://github.com/aws/glide-for-redis/wiki/General-Concepts#blocking-commands for more details and best practices.
2369
+
2370
+
See https://valkey.io/commands/bzpopmin for more details.
2371
+
2372
+
Args:
2373
+
keys (List[str]): The keys of the sorted sets.
2374
+
timeout (float): The number of seconds to wait for a blocking operation to complete.
2375
+
A value of 0 will block indefinitely.
2376
+
2377
+
Returns:
2378
+
Optional[List[Union[str, float]]]: An array containing the key where the member was popped out, the member itself,
2379
+
and the member score. If no member could be popped and the `timeout` expired, returns None.
Pops the member with the highest score from the first non-empty sorted set, with the given keys being checked in
1630
+
the order that they are given. Blocks the connection when there are no members to remove from any of the given
1631
+
sorted sets.
1632
+
1633
+
`BZPOPMAX` is the blocking variant of `ZPOPMAX`.
1634
+
1635
+
`BZPOPMAX` is a client blocking command, see https://github.com/aws/glide-for-redis/wiki/General-Concepts#blocking-commands for more details and best practices.
1636
+
1637
+
See https://valkey.io/commands/bzpopmax for more details.
1638
+
1639
+
Args:
1640
+
keys (List[str]): The keys of the sorted sets.
1641
+
timeout (float): The number of seconds to wait for a blocking operation to complete.
1642
+
A value of 0 will block indefinitely.
1643
+
1644
+
Command response:
1645
+
Optional[List[Union[str, float]]]: An array containing the key where the member was popped out, the member itself,
1646
+
and the member score. If no member could be popped and the `timeout` expired, returns None.
Pops the member with the lowest score from the first non-empty sorted set, with the given keys being checked in
1676
+
the order that they are given. Blocks the connection when there are no members to remove from any of the given
1677
+
sorted sets.
1678
+
1679
+
`BZPOPMIN` is the blocking variant of `ZPOPMIN`.
1680
+
1681
+
`BZPOPMIN` is a client blocking command, see https://github.com/aws/glide-for-redis/wiki/General-Concepts#blocking-commands for more details and best practices.
1682
+
1683
+
See https://valkey.io/commands/bzpopmin for more details.
1684
+
1685
+
Args:
1686
+
keys (List[str]): The keys of the sorted sets.
1687
+
timeout (float): The number of seconds to wait for a blocking operation to complete.
1688
+
A value of 0 will block indefinitely.
1689
+
1690
+
Command response:
1691
+
Optional[List[Union[str, float]]]: An array containing the key where the member was popped out, the member itself,
1692
+
and the member score. If no member could be popped and the `timeout` expired, returns None.
0 commit comments