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
質問済み 25日前138ビュー
1回答
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
回答済み 16日前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ