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

Add CLIENT INFO command as Redis #1354

Merged
merged 3 commits into from
Mar 25, 2023

Conversation

enjoy-binbin
Copy link
Member

This PR add CLIENT INFO command as Redis, this command
returns information about the current client connection,
the output format is the same as CLIENT LIST command.

CLIENT INFO was added in Redis 6.2.0

This PR add CLIENT INFO command as Redis, this command
returns information about the current client connection,
the output format is the same as CLIENT LIST command.

CLIENT INFO was added in Redis 6.2.0
@@ -45,6 +45,11 @@ func TestIntrospection(t *testing.T) {
require.Regexp(t, "id=.* addr=.*:.* fd=.* name=.* age=.* idle=.* flags=N namespace=.* qbuf=.* .*obuf=.* cmd=client.*", v)
})

t.Run("CLIENT INFO", func(t *testing.T) {
v := rdb.Do(ctx, "CLIENT", "INFO").Val()
Copy link
Member Author

Choose a reason for hiding this comment

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

note go-redis does not support CLIENT INFO yet (a pending PR, should be supported soon)
so here i am using Do

@git-hulk git-hulk requested review from PragmaTwice and torwig March 25, 2023 02:31
@git-hulk
Copy link
Member

Cool, Thanks for your contribution. @enjoy-binbin We can use the command ./x.py format to auto-format and make the linter happy.

Copy link
Contributor

@torwig torwig left a comment

Choose a reason for hiding this comment

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

LGTM. @enjoy-binbin just run the command @git-hulk provided and commit changes.

Copy link
Member

@git-hulk git-hulk left a comment

Choose a reason for hiding this comment

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

LGTM

@git-hulk
Copy link
Member

Thanks all, merging..

@git-hulk git-hulk merged commit 90395f0 into apache:unstable Mar 25, 2023
@enjoy-binbin enjoy-binbin deleted the add_client_info_command branch March 25, 2023 07:55
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