Skip to content

rdb 80 (valkey 9+) compatibility#62

Closed
bpint wants to merge 2 commits intoHDT3213:masterfrom
bpint:master
Closed

rdb 80 (valkey 9+) compatibility#62
bpint wants to merge 2 commits intoHDT3213:masterfrom
bpint:master

Conversation

@bpint
Copy link
Copy Markdown
Contributor

@bpint bpint commented Jan 29, 2026

In valkey 9+, the rdb format was forked, and valkey adopted new rdb version 80.

considering valkey is now widely used after redis changed its license model, we purpose this as a start of valkey rdb support.

  • the rdb headers are now different, for example, "REDIS0012" and "VALKEY080"

  • valkey added new opcode RDB_OPCODE_SLOT_INFO and RDB_OPCODE_SLOT_IMPORT.
    (we may have to do more someday on the later since it will have the same value of 243 as redis RDB_OPCODE_KEY_META in the future.)

  • different encoding of hash with field expiration (hfe), RDB_TYPE_HASH_2.
    (Though this macro has the same value of redis RDB_TYPE_HASH_METADATA_PRE_GA, we are probably ok this time, since the later is only used in a rc version and ditched now.)
    The encoding of HASH_2 is much simpler. It just stores fields, values and expiration timestamps. However, here NO-TTL should be represented by -1 instead of 0 in rdb stream.

please review this. thank you for your advancing help.

@HDT3213
Copy link
Copy Markdown
Owner

HDT3213 commented Apr 18, 2026

Your commit has been manually merged into the mainline. Next time, please enable "Allow edits from maintainers".

@HDT3213 HDT3213 closed this Apr 18, 2026
@bpint
Copy link
Copy Markdown
Contributor Author

bpint commented Apr 19, 2026

Your commit has been manually merged into the mainline. Next time, please enable "Allow edits from maintainers".

got it. thanks & sorry for the trouble.

@HDT3213
Copy link
Copy Markdown
Owner

HDT3213 commented Apr 21, 2026

Your commit has been manually merged into the mainline. Next time, please enable "Allow edits from maintainers".

got it. thanks & sorry for the trouble.

Thanks for your contribution! No need to apologize at all, really appreciate it.

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.

2 participants