-
Notifications
You must be signed in to change notification settings - Fork 53
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 ECHO command #953
Conversation
a1802f3
to
98d58fc
Compare
@@ -1121,6 +1121,24 @@ async def ttl(self, key: str) -> int: | |||
""" | |||
return cast(int, await self._execute_command(RequestType.TTL, [key])) | |||
|
|||
async def echo(self, message: str) -> str: | |||
""" | |||
Returns `message`. |
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.
Echoes the provided message
back.
message (str): The message to be echoed back. | ||
|
||
Returns: | ||
str: The `message` sent as an argument. |
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.
The provided message
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.
done
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.
Fix also in transaction & merge
98d58fc
to
e0f79fc
Compare
e0f79fc
to
c74011a
Compare
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.