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 the compatible Redis version to the info command #1158

Merged
merged 5 commits into from
Dec 6, 2022

Conversation

xiaobiaozhao
Copy link
Contributor

@xiaobiaozhao xiaobiaozhao commented Dec 4, 2022

Add redis_version into the info command

this closes #1157

add redis_version
add kvrocks_version
src/server/server.cc Outdated Show resolved Hide resolved
@git-hulk git-hulk changed the title feat: Fit redis driver Add the compatible Redis version to the info command Dec 4, 2022
git-hulk
git-hulk previously approved these changes Dec 4, 2022
src/version.h.in Outdated Show resolved Hide resolved
@xiaobiaozhao xiaobiaozhao force-pushed the change-redis-version-config branch from 07bab2d to 85cbe0c Compare December 5, 2022 08:21
@git-hulk
Copy link
Member

git-hulk commented Dec 6, 2022

@PragmaTwice @ShooterIT Does it look good to you?

@git-hulk
Copy link
Member

git-hulk commented Dec 6, 2022

Thanks all, merging...

@git-hulk git-hulk merged commit 38512b7 into apache:unstable Dec 6, 2022
@@ -44,6 +44,7 @@
#include "worker.h"

std::atomic<int> Server::unix_time_ = {0};
constexpr const char *REDIS_VERSION = "4.0.0";
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity, does it mean that we're functionality compatible with Redis 4.x?

Copy link
Member

Choose a reason for hiding this comment

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

But we support STREAM delivered in Redis 5.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, we are roughly aligning the protocol with the Redis 4.x, but the data type and command can be newer than 4.x.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also think in the future there will be some commands that only kvrocks has but redis doesn't

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.

Add the compatible Redis version to the info command
4 participants