Redis CROSSSLOT Keys in request don’t hash to the same slot
Multi-key command (`MGET`, Lua, transaction) spanned keys on different Cluster hash slots.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Redis CROSSSLOT Keys in request don’t hash to the same slot
Platform: Redis
Common Root Causes:
- Multi-key command (`MGET`, Lua, transaction) spanned keys on different Cluster hash slots.
Interactive Diagnostic Checklist
Verified Solutions:
- Co-locate related keys using `{hash_tag}` braces in key names.
Safe Diagnostic Command:
Inspect keys in multi-key command
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Multi-key command (`MGET`, Lua, transaction) spanned keys on different Cluster hash slots. Recommended diagnostic: `Inspect keys in multi-key command`. Remediation: Co-locate related keys using `{hash_tag}` braces in key names.
Worked Examples
- Run `Inspect keys in multi-key command` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-redis-cluster-crossslot-error · Independently verified: 2026-11-25