- Newest
- Most votes
- Most comments
Hello,
As I understand, the KEYS * command is missing in Redis cache Serverless engine version 7.1. Please note that ElastiCache for Redis Serverless runs Redis in cluster mode and is only compatible with Redis clients that support both TLS and the Redis cluster protocol. In addition, the KEYS * command is unavailable for Serverless caches. Please find below the links to ElastiCache for Redis documentation for further details.
=> How it works - How ElastiCache for Redis works - https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/WhatIs.corecomponents.html#WhatIs.HowELCworks
=> Supported and restricted Redis commands - Restricted Redis commands - https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SupportedCommands.html#RestrictedCommandsRedis
SCAN command can be used instead. Since this command allows for incremental iteration, returning only a small number of elements per call, it can be used in production without the downside of commands such as KEYS or SMEMBERS that may block the server for a long time (even several seconds) when called against big collections of keys or elements.
=> Redis SCAN command - https://redis.io/docs/latest/commands/scan/
I believe you will find the above information useful. If you have any further questions, then please feel free to contact AWS by creating a support case.
=> Creating support cases and case management - https://docs.aws.amazon.com/awssupport/latest/user/case-management.html
Relevant content
- asked 3 months ago
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago