-
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: Add Script commands #2208
Python: Add Script commands #2208
Conversation
78ef000
to
a735a8d
Compare
65c6cb5
to
0147334
Compare
b2b699b
to
2cd39fe
Compare
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.
Transaction?
case the client will route the command to the nodes defined by `route`. Defaults to None. | ||
|
||
Returns: | ||
List[bool]: A list of boolean values indicating the existence of each script. |
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.
List[bool]: A list of boolean values indicating the existence of each script. | |
TClusterResponse[List[bool]]: A list of boolean values indicating the existence of each script. | |
When specifying a route other than a single node, response will be: | |
{Address (bytes) : response (List[bool]) , ... } with type of Dict[bytes, List[bool]]. |
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.
are we sure this is the response type? when you specify all nodes ?
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.
I believe if we specify to all nodes, the results across different nodes are just aggregated using a logical AND, according to cluster_routing.rs in redis.rs, and still returns a list of booleans.
3b25b91
to
1a21f57
Compare
d2efeb2
to
97e537c
Compare
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.
Spotted some small documentation mistakes. Please fix those first.
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: TJ Zhang <[email protected]>
Signed-off-by: TJ Zhang <[email protected]>
522e4fd
to
30969fc
Compare
Signed-off-by: TJ Zhang <[email protected]>
* Python: Add Script commands Signed-off-by: TJ Zhang <[email protected]>
Inheriting the changes from PR: #2094 & addressing existing comments
putting transactions out of scope for this PR since script_invocation and script_invocation_pointers seem to be parallel with transactions and more investigation might be needed for the implementation of invoke_script.