Skip to content

Document Path Hash for Valkey 9.2 - #538

Merged
Andriciuc merged 5 commits into
valkey-io:mainfrom
yangbodong22011:codex/path-hash-docs
Dec 4, 2026
Merged

Andriciuc merged 5 commits into
valkey-io:mainfrom
yangbodong22011:codex/path-hash-docs

Conversation

@yangbodong22011

Copy link
Copy Markdown
Contributor

Document Path Hash as implemented in valkey-io/valkey@c77a4e8.

  • Add command pages for all 12 current commands, with examples and RESP2/RESP3 reply descriptions.
  • Add a topic covering exact paths, prefix matching, conditional writes, scanning, and key deletion. Link it from the data types page and the documentation menu.
  • Add the command group, ACL category, keyspace events, and type and encoding names. Include the RDB object type and module key type in the topic. The generated Module API reference picks up the source comments in Document missing key types and notification flags in module API valkey#5289 at release time.

Validated the HTML and man page builds, internal links, spelling, all 40 example commands, and protocol and notification behavior against the pinned Valkey build.

Closes #517.

Signed-off-by: bodong.ybd <bodong.ybd@alibaba-inc.com>
@yangbodong22011
yangbodong22011 marked this pull request as ready for review November 6, 2026 11:25
@madolson
madolson requested a review from stockholmux November 16, 2026 16:16
@zuiderkwast
zuiderkwast self-requested a review November 16, 2026 16:17

@zuiderkwast zuiderkwast left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I mainly looked at the Reply section of each command, following the simplified style used in #518.

Comment thread commands/phdel.md Resolved
Comment thread commands/phget.md Resolved
Comment thread commands/phgetall.md Resolved
Comment thread commands/phmget.md Resolved
Comment thread commands/phmset.md Resolved
Comment thread commands/phprefixes.md Resolved
Comment thread commands/phprefixes.md Resolved
Comment thread commands/phscan.md Resolved
Comment thread commands/phset.md Resolved
Comment thread topics/notifications.md Resolved

@stockholmux stockholmux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall good.

General repeated issues:

  1. there is some loose terminology entry is used in a few places and I'm not sure what it means.
  2. There is a lot of links to back to the topic page and often on pages where no other data types have links back to their topic. The template on the website will provide the relevant context.
  3. I think the documentation the two *SCAN commands could be better. The API is a little confusing here and one command doesn't act like any other scan command in Valkey

Comment thread commands/object-encoding.md Resolved
Comment thread commands/phdel.md Resolved
Comment thread commands/phget.md Resolved
Comment thread commands/phget.md Resolved
Comment thread commands/phmget.md Resolved
Comment thread commands/phset.md Resolved
Comment thread topics/acl.md Resolved
Comment thread topics/notifications.md Resolved
Comment thread topics/path-hashes.md Resolved
Comment thread topics/path-hashes.md Resolved
madolson and others added 3 commits November 19, 2026 08:42
Drop RESP2/RESP3 from reply sections where the type is the same, and
describe maps only as maps. Use "element" instead of "entry". Remove
links from command and reference pages back to the topic page, and the
9.2 version notes on the topic page, OBJECT ENCODING, and the A
notification alias. Describe how PHPATHSCAN ordering, COUNT, and
guarantees differ from SCAN, and say PHSCAN MATCH uses KEYS glob-style
patterns. Clarify PHMGET replies for missing keys and paths, match the
OBJECT ENCODING layout of other types, and rename the topic's "Server
integration" section.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: bodong.ybd <bodong.ybd@alibaba-inc.com>

@Andriciuc Andriciuc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! @stockholmux please let me know if the fixes satisfy the review, if so it's ready to merge. 🙏

@zuiderkwast zuiderkwast left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Andriciuc

Copy link
Copy Markdown
Contributor

All fixes applied and approvals received, merging.

@Andriciuc
Andriciuc merged commit 91ec650 into valkey-io:main Dec 4, 2026
5 checks passed
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.

Document the Path Hash data type for 9.2

5 participants