Skip to content
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

Merged

Conversation

aaron-congo
Copy link

@aaron-congo aaron-congo commented May 7, 2024

) -> 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.
Copy link
Author

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

@aaron-congo aaron-congo changed the title Python: add BZPOPMAX command Python: add BZPOPMIN and BZPOPMAX commands May 7, 2024
glide-core/src/client/value_conversion.rs Show resolved Hide resolved
glide-core/src/protobuf/redis_request.proto Outdated Show resolved Hide resolved
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
await redis_client.bzpopmin(["foo"], 0.5)

# same-slot requirement
if isinstance(redis_client, RedisClusterClient):

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

Copy link
Author

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?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up to you

Copy link
Author

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

@aaron-congo aaron-congo force-pushed the python/dev_acongo_bzpopmax branch from 859cadc to 6298c3d Compare May 7, 2024 22:14
@aaron-congo aaron-congo changed the base branch from python/integ_acongo_bzpopmax to main May 7, 2024 22:21
@aaron-congo aaron-congo changed the base branch from main to python/integ_acongo_bzpopmax May 7, 2024 22:21
@aaron-congo aaron-congo force-pushed the python/dev_acongo_bzpopmax branch from 6298c3d to 693f0f4 Compare May 8, 2024 21:23
@aaron-congo aaron-congo merged commit 624ee8d into python/integ_acongo_bzpopmax May 9, 2024
43 checks passed
@aaron-congo aaron-congo deleted the python/dev_acongo_bzpopmax branch May 9, 2024 19:08
acarbonetto pushed a commit that referenced this pull request May 14, 2024
* Python: add BZPOPMIN and BZPOPMAX commands (#266)

* Update PR link

* PR suggestions

* Fix rust
cyip10 pushed a commit that referenced this pull request Jun 24, 2024
* Python: add BZPOPMIN and BZPOPMAX commands (#266)

* Update PR link

* PR suggestions

* Fix rust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants