Skip to content
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

Update KEYS and SCAN page with new optimization about pattern with hash tag. #2610

Merged
merged 8 commits into from
Mar 7, 2024
2 changes: 2 additions & 0 deletions commands/keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Supported glob-style patterns:

Use `\` to escape special characters if you want to match them verbatim.

Note that using a pattern with hash tag which can imply a specific slot can save complexity, as any key matching the pattern will be in the same slot, Redis would only iterate over keys in the slot, rather than the whole database. For example, with the pattern `{a}h*llo`, Redis would only try to match it with the keys in slot 15495, which hash tag `{a}` implies.
zuiderkwast marked this conversation as resolved.
Show resolved Hide resolved

@examples

```cli
Expand Down
Loading