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: adds LSET command #1584

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Conversation

shohamazon
Copy link
Collaborator

Issue #, if available:

Description of changes:

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

@shohamazon shohamazon requested a review from a team as a code owner June 16, 2024 18:33
@@ -1415,6 +1415,33 @@ async def lindex(
await self._execute_command(RequestType.LIndex, [key, str(index)]),
)

async def lset(self, key: str, index: int, element: str) -> TOK:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Some commands return TOK, some - str, even though they return only OK.
What is the client standard?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TOK is just a python way for making the literal OK a type, it's the same as str but for commands that only returns OK

@shohamazon shohamazon merged commit 85d9c57 into valkey-io:main Jun 18, 2024
6 checks passed
@shohamazon shohamazon deleted the python/lset branch June 18, 2024 09:00
acarbonetto pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 18, 2024
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 19, 2024
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
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants