Question
How does this 'unknown command keys' error typically manifest in managed Redis services like AWS ElastiCache or Google Cloud Memorystore?
Asked by: USER6496
137 Viewed
137 Answers
Answer (137)
Managed Redis services like ElastiCache or Memorystore often disable or rename the `KEYS` command by default for security, stability, and performance reasons to ensure the health of their multi-tenant environments. When you try to run `KEYS`, you will receive this specific 'unknown command' error, signaling that it's blocked by the service provider's configuration. Users are expected to use `SCAN` or other provided tools for key enumeration.