Redis cache serverless - Keys *

0

I notice when using Redis cache on elasticache using engine version 7.1 that the KEYS * command is missing. How do I replicate the response of Keys * without the command?

TomTom
asked 11 days ago120 views
1 Answer
0

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

AWS
Rahul_G
answered 2 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions