Skip to content

feat(hash): track persistent hash fields & support hash field expiration commands#3472

Open
PragmaTwice wants to merge 11 commits into
apache:unstablefrom
PragmaTwice:hfe-persist-metadata
Open

feat(hash): track persistent hash fields & support hash field expiration commands#3472
PragmaTwice wants to merge 11 commits into
apache:unstablefrom
PragmaTwice:hfe-persist-metadata

Conversation

@PragmaTwice
Copy link
Copy Markdown
Member

@PragmaTwice PragmaTwice commented May 1, 2026

Proposal #3432. Tracking issue #3436.

Add hash field expiration support based on the new persistent-field metadata model.

This PR:

  • Tracks persistent hash fields in metadata for field-expiration encoding.
  • Adds HEXPIRE and HPERSIST.
  • Updates existing hash read/write commands to handle expired fields correctly.
  • Filters expired fields from hash read commands without mutating metadata.
  • Adds C++ and Go coverage for persistent, TTL, expired, and compaction-ghost states.

Assisted-by: Codex/GPT 5.5 xhigh

@PragmaTwice PragmaTwice marked this pull request as ready for review May 1, 2026 11:21
@PragmaTwice PragmaTwice requested a review from git-hulk May 1, 2026 11:21
Comment thread src/types/redis_hash.cc Outdated
Comment thread src/types/redis_hash.cc Outdated
@PragmaTwice
Copy link
Copy Markdown
Member Author

@jihuayu Please click the "update branch" button if and only if the PR is in a "ready to merge" status.

@PragmaTwice PragmaTwice requested a review from git-hulk May 10, 2026 05:22
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@jihuayu
Copy link
Copy Markdown
Member

jihuayu commented May 11, 2026

@jihuayu Please click the "update branch" button if and only if the PR is in a "ready to merge" status.

Sorry. Thanks for your remaid

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