Skip to content

Python: add SDIFF command#1437

Merged
acarbonetto merged 1 commit intovalkey-io:mainfrom
Bit-Quill:python/integ_acongo_sdiff
May 23, 2024
Merged

Python: add SDIFF command#1437
acarbonetto merged 1 commit intovalkey-io:mainfrom
Bit-Quill:python/integ_acongo_sdiff

Conversation

@aaron-congo
Copy link
Copy Markdown
Contributor

Issue #, if available:
N/A

Description of changes:
https://redis.io/docs/latest/commands/sdiff/

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

@aaron-congo aaron-congo requested a review from a team as a code owner May 22, 2024 00:21
@aaron-congo aaron-congo added the python 🐍 Python wrapper label May 22, 2024
| b"SISMEMBER" | b"PERSIST" | b"SMOVE" | b"RENAMENX" => Some(ExpectedReturnType::Boolean),
b"SMISMEMBER" => Some(ExpectedReturnType::ArrayOfBools),
b"SMEMBERS" | b"SINTER" => Some(ExpectedReturnType::Set),
b"SMEMBERS" | b"SINTER" | b"SDIFF" => Some(ExpectedReturnType::Set),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

RESP3 returns a set, which is what we want, but RESP2 returns an array, so I added this here to convert RESP2 responses

@aaron-congo aaron-congo force-pushed the python/integ_acongo_sdiff branch from 71aa1b0 to 7170163 Compare May 23, 2024 01:29
@acarbonetto acarbonetto merged commit be4dcd4 into valkey-io:main May 23, 2024
@acarbonetto acarbonetto deleted the python/integ_acongo_sdiff branch May 23, 2024 16:02
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 24, 2024
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