-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: add BZPOPMIN and BZPOPMAX commands #266
Python: add BZPOPMIN and BZPOPMAX commands #266
Conversation
) -> Optional[List[Union[str, float]]]: | ||
""" | ||
Blocks the connection until it removes and returns a member with the highest score from the sorted sets stored | ||
at the specified keys. The sorted sets are checked in the order they are provided. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: the "keys" arg is not surrounded with angle quotes for other command docs in this file, so I've followed that pattern here
await redis_client.bzpopmin(["foo"], 0.5) | ||
|
||
# same-slot requirement | ||
if isinstance(redis_client, RedisClusterClient): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This goes to a separate test case in #226
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since that PR isn't merged into upstream yet, what should I do in this PR? Remove this part of the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Up to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, for now I will keep this in and once the separate test case is merged upstream we can move it there
859cadc
to
6298c3d
Compare
6298c3d
to
693f0f4
Compare
* Python: add BZPOPMIN and BZPOPMAX commands (#266) * Update PR link * PR suggestions * Fix rust
* Python: add BZPOPMIN and BZPOPMAX commands (#266) * Update PR link * PR suggestions * Fix rust
BZPOPMAX
command. valkey-io/valkey-glide#1255