-
Notifications
You must be signed in to change notification settings - Fork 472
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
Add the compatible Redis version to the info command #1158
Conversation
add redis_version add kvrocks_version
07bab2d
to
85cbe0c
Compare
@PragmaTwice @ShooterIT Does it look good to you? |
Thanks all, merging... |
@@ -44,6 +44,7 @@ | |||
#include "worker.h" | |||
|
|||
std::atomic<int> Server::unix_time_ = {0}; | |||
constexpr const char *REDIS_VERSION = "4.0.0"; |
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.
Out of curiosity, does it mean that we're functionality compatible with Redis 4.x?
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.
But we support STREAM delivered in Redis 5.
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.
Yes, we are roughly aligning the protocol with the Redis 4.x, but the data type and command can be newer than 4.x.
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 also think in the future there will be some commands that only kvrocks has but redis doesn't
Add redis_version into the info command
this closes #1157