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

added clientGetName command- Node #387

Merged
merged 1 commit into from
Oct 4, 2023
Merged

added clientGetName command- Node #387

merged 1 commit into from
Oct 4, 2023

Conversation

adanWattad
Copy link
Contributor

@adanWattad adanWattad commented Aug 30, 2023

added clientGetName and clientSetName commands in node.
response/request policy: None.

@barshaul
Copy link
Collaborator

Missing the expected response/request policy

@adanWattad adanWattad force-pushed the node/clientGet+Set branch 2 times, most recently from 9271901 to 1981af9 Compare September 3, 2023 14:36
@shachlanAmazon
Copy link
Contributor

@barshaul @adanWattad @shohamazon the CLIENT SETNAME command might be more complex than expected, since we'll need to reset the name when we reconnect internally. I suggest not implementing it in code for now, instead passing the value in the connection options.

@shachlanAmazon
Copy link
Contributor

I recommend that we only implement CLIENT GETNAME for now

@adanWattad adanWattad changed the title added clientGetName and clientSetName commands - Node added clientGetName command- Node Oct 1, 2023
* See https://redis.io/commands/client-getname/ for more details.
*
* Command Response - the name of the client connection as a string if a name is set, or null if no name is assigned.
* When specifying a route other than a single node, the response will be a dictionary of Address: nodeResponse.
Copy link
Contributor

Choose a reason for hiding this comment

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

there's no route with more than a single node in a transaction.

* case the client will initially try to route the command to the nodes defined by `route`.
*
* @returns - the name of the client connection as a string if a name is set, or null if no name is assigned.
* When specifying a route other than a single node, it will return a dictionary of Address: nodeResponse.
Copy link
Contributor

Choose a reason for hiding this comment

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

a dictionary of Address: nodeResponse is neither english, nor a description of the returned typed.

@adanWattad adanWattad merged commit a055eda into main Oct 4, 2023
@adanWattad adanWattad deleted the node/clientGet+Set branch October 4, 2023 09:11
acarbonetto added a commit that referenced this pull request Jun 25, 2024
* Python: Add LOLWUT command (#387)

Added Python LOLWUT command

* Updated CHANGELOG.md

* Fixed formated issues

---------

Co-authored-by: Andrew Carbonetto <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants