-
Notifications
You must be signed in to change notification settings - Fork 65
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 TOUCH command #1582
Conversation
@@ -429,6 +429,8 @@ async def set( | |||
args.append("GET") | |||
if expiry is not None: | |||
args.extend(expiry.get_cmd_args()) | |||
|
|||
print(args) |
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.
please delete
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.
😶
See https://valkey.io/commands/touch/ for details. | ||
|
||
Note: | ||
When in cluster mode, the command may route to multiple nodes when `keys` map to different hash slots. |
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.
<3
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.
please address comments before merging
keys (List[str]): The keys to update last access time. | ||
|
||
Returns: | ||
int: The number of keys that were updated, a key is ignored is it doesn't exist. |
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.
int: The number of keys that were updated, a key is ignored is it doesn't exist. | |
int: The number of keys that were updated, a key is ignored if it doesn't exist. |
keys (List[str]): The keys to update last access time. | ||
|
||
Commands response: | ||
int: The number of keys that were updated, a key is ignored is it doesn't exist. |
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.
int: The number of keys that were updated, a key is ignored is it doesn't exist. | |
int: The number of keys that were updated, a key is ignored if it doesn't exist. |
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.