diff --git a/commands/keys.md b/commands/keys.md index 90eb073cd8..bdfddf9f64 100644 --- a/commands/keys.md +++ b/commands/keys.md @@ -30,6 +30,7 @@ Note that when enabling `Redis cluster-mode`, using a pattern with hash tag that Because 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. +To use pattern with hash tag, see https://redis.io/docs/reference/cluster-spec/#hash-tags for more information. @examples diff --git a/commands/scan.md b/commands/scan.md index 61acec80dc..2b4cf3c200 100644 --- a/commands/scan.md +++ b/commands/scan.md @@ -152,6 +152,7 @@ Note that when enabling `Redis cluster-mode`, using a pattern with hash tag that Because 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. +To use pattern with hash tag, see https://redis.io/docs/reference/cluster-spec/#hash-tags for more information. ## The TYPE option