创建 Redis OSS 无服务器缓存 - Amazon ElastiCache
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

创建 Redis OSS 无服务器缓存

在此步骤中,您将在 Amazon 中创建一个新的缓存 ElastiCache。

Amazon Web Services Management Console

要使用 ElastiCache 控制台创建新缓存,请执行以下操作:

  1. 登录 Amazon Web Services Management Console 并打开 ElastiCache 控制台,网址为https://console.aws.amazon.com/elasticache/

  2. 在控制台左侧的导航窗格中,选择 Redis OSS 缓存

  3. 在控制台右侧,选择创建 Redis OSS 缓存

  4. 缓存设置中输入名称。您还可以选择为缓存输入描述

  5. 保持选中默认设置。

  6. 单击创建以创建缓存。

  7. 缓存处于“活动”状态后,您可以开始在缓存上写入和读取数据。

Amazon CLI

以下 Amazon CLI 示例使用创建新缓存 create-serverless-cache。

Linux

aws elasticache create-serverless-cache \ --serverless-cache-name CacheName \ --engine redis

Windows

aws elasticache create-serverless-cache ^ --serverless-cache-name CacheName ^ --engine redis

请注意,“状态”字段的值设置为 CREATING

要验证是否 ElastiCache 已完成缓存的创建,请使用describe-serverless-caches命令。

Linux

aws elasticache describe-serverless-caches --serverless-cache-name CacheName

Windows

aws elasticache describe-serverless-caches --serverless-cache-name CacheName

创建新缓存后,继续执行对缓存读取和写入数据