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
posta un mese fa163 visualizzazioni
1 Risposta
1

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
con risposta un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande