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 PFADD command. #1315

Merged
merged 6 commits into from
Apr 25, 2024

Conversation

Yury-Fridlyand
Copy link
Collaborator

Issue #, if available:
N/A

Description of changes:
ref #1221

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Yury-Fridlyand and others added 2 commits April 19, 2024 10:33
* Add `PFADD` command.

Signed-off-by: Yury-Fridlyand <[email protected]>

* BLACK I HATE YOU

Signed-off-by: Yury-Fridlyand <[email protected]>

* PR comments.

Signed-off-by: Yury-Fridlyand <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Yury-Fridlyand <[email protected]>

Co-authored-by: Aaron <[email protected]>

---------

Signed-off-by: Yury-Fridlyand <[email protected]>
Co-authored-by: Aaron <[email protected]>
Adds all elements to the HyperLogLog data structure stored at the specified `key`.
Creates a new structure if the `key` does not exist.

When no `elements` are provided, and `key` exists and is a HyperLogLog, then no operation is performed.
Copy link
Collaborator

Choose a reason for hiding this comment

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

should that mean that elements are optional? or just passing an empty list?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think pptional is for commands which have multiple cmd formats, like set: SET key value [NX | XX] [GET] ...

Signed-off-by: Yury-Fridlyand <[email protected]>

Co-authored-by: Shoham Elias <[email protected]>
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
python/python/glide/async_commands/transaction.py Outdated Show resolved Hide resolved
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
@acarbonetto acarbonetto merged commit d7f1ad8 into valkey-io:main Apr 25, 2024
6 checks passed
@acarbonetto acarbonetto deleted the python/integ_yuryf_PFADD branch April 25, 2024 20:04
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 24, 2024
* Python: Add `PFADD` command. (#229)

* Add `PFADD` command.

Signed-off-by: Yury-Fridlyand <[email protected]>

* BLACK I HATE YOU

Signed-off-by: Yury-Fridlyand <[email protected]>

* PR comments.

Signed-off-by: Yury-Fridlyand <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Yury-Fridlyand <[email protected]>

Co-authored-by: Aaron <[email protected]>

---------

Signed-off-by: Yury-Fridlyand <[email protected]>
Co-authored-by: Aaron <[email protected]>

* Apply suggestions from code review

Signed-off-by: Yury-Fridlyand <[email protected]>

Co-authored-by: Shoham Elias <[email protected]>

* PR comments.

Signed-off-by: Yury-Fridlyand <[email protected]>

* PR comments.

Signed-off-by: Yury-Fridlyand <[email protected]>

---------

Signed-off-by: Yury-Fridlyand <[email protected]>
Co-authored-by: Aaron <[email protected]>
Co-authored-by: Shoham Elias <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Python wrapper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants