Document server_name, valkey_version, and redis_version INFO fields#427
Open
kovan wants to merge 3 commits intovalkey-io:mainfrom
Open
Document server_name, valkey_version, and redis_version INFO fields#427kovan wants to merge 3 commits intovalkey-io:mainfrom
kovan wants to merge 3 commits intovalkey-io:mainfrom
Conversation
Document how Valkey maintains backward compatibility with Redis OSS: 1. Version compatibility: forked from Redis 7.2.4, compatible with all Redis OSS versions up to 7.2.x, not compatible with Redis CE 7.4+ 2. INFO fields: redis_version is fixed at 7.2.4 for client compatibility, server_version reports the actual Valkey version 3. Lua scripting: both redis.call() and server.call() namespaces work 4. Module API: both RedisModule_* and ValkeyModule_* prefixes are supported All information verified against the Valkey source code (version.h, redismodule.h, valkeymodule.h). Fixes valkey-io#14
- Add server_name field description (was in example output but not in the field descriptions list) - Expand redis_version description to clarify it is fixed at 7.2.4 and does not change across Valkey releases - Expand valkey_version description to clarify it is the actual version to check Fixes valkey-io#15
zuiderkwast
reviewed
May 8, 2026
Contributor
zuiderkwast
left a comment
There was a problem hiding this comment.
Thanks! INFO field descriptions look good. Please fix the DCO issue. Click details under the CI job below for more information.
Comment on lines
+277
to
+279
| * `server_name`: The name of the server software (always `valkey` for Valkey servers). Use this field to distinguish Valkey from Redis OSS. Added in Valkey 7.2.5. | ||
| * `redis_version`: The Redis OSS version that this Valkey server is compatible with. This value is fixed at `7.2.4` across all Valkey releases to maintain compatibility with existing clients and tools that check this field for feature detection. | ||
| * `valkey_version`: The actual Valkey version number (e.g. `8.1.1`). Use this field instead of `redis_version` to check the Valkey version. |
Contributor
There was a problem hiding this comment.
The text looks good, but please reorder them to match the order in INFO. They are in this order:
# Server
redis_version:7.2.4
server_name:valkey
valkey_version:255.255.255
We kept redis_version first because of some concerns that some clients or tools might expect it to be first. I don't know if that's true, but the fields should be documented in the same order as they appear in INFO.
Contributor
There was a problem hiding this comment.
There is a separate PR for this file. Please keep them separate and skip this file in this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
server_nameto the server section field descriptions (it was in the example output but missing from the descriptions list)redis_versiondescription to clarify it is fixed at 7.2.4 across all Valkey releases for client compatibilityvalkey_versiondescription to recommend using it instead ofredis_versionVerified against
src/version.hand the PRs referenced in the issue (valkey-io/valkey#232, valkey-io/valkey#47).Fixes #15