快速入门:创建用于 Redis 的 Azure 缓存实例Quickstart: Create an Azure Cache for Redis instance

Azure Cache for Redis 在 Azure 中提供完全托管的开放源代码 RedisAzure Cache for Redis provides fully managed open-source Redis within Azure. 你可以从任何层(基本、标准或高级)和大小的 Azure Cache for Redis 实例开始,并对其进行扩展以满足应用程序的性能需求。You can start with an Azure Cache for Redis instance of any tier (Basic, Standard or Premium) and size, and scale it to meet your application's performance needs. 本快速入门演示如何使用 Azure 门户创建新的 Azure Cache for Redis。This quickstart demonstrates how to use the Azure portal to create a new Azure Cache for Redis.

先决条件Prerequisites

在开始之前,你需要一个 Azure 订阅。You'll need an Azure subscription before you begin. 如果没有订阅,请先创建一个试用帐户If you don't have one, create a Trial first.

创建缓存Create a cache

  1. 若要创建缓存,请登录到 Azure 门户并选择“创建资源” 。To create a cache, sign in to the Azure portal and select Create a resource.

    选择“创建资源”

  2. 在“新建”页上选择“数据库”,然后选择“Azure Cache for Redis”。On the New page, select Databases and then select Azure Cache for Redis.

    选择“Azure Cache for Redis”

  3. 在“新建 Redis 缓存”页上配置新缓存的设置。On the New Redis Cache page, configure the settings for your new cache.

    设置Setting 建议的值Suggested value 说明Description
    DNS 名称DNS name 输入任何全局唯一的名称。Enter a globally unique name. 缓存名称必须是包含 1 到 63 个字符的字符串,只能包含数字、字母或连字符。The cache name must be a string between 1 and 63 characters that contains only numbers, letters, or hyphens. 该名称必须以数字或字母开头和结尾,且不能包含连续的连字符。The name must start and end with a number or letter, and can't contain consecutive hyphens. 缓存实例的主机名将是 <DNS name>.redis.cache.chinacloudapi.cnYour cache instance's host name will be <DNS name>.redis.cache.chinacloudapi.cn.
    订阅Subscription 单击下拉箭头并选择你的订阅。Drop down and select your subscription. 要在其下创建此新的 Azure Cache for Redis 实例的订阅。The subscription under which to create this new Azure Cache for Redis instance.
    资源组Resource group 单击下拉箭头并选择一个资源组,或者选择“新建”并输入新的资源组名称。Drop down and select a resource group, or select Create new and enter a new resource group name. 要在其中创建缓存和其他资源的资源组的名称。Name for the resource group in which to create your cache and other resources. 将所有应用资源放入一个资源组可以轻松地统一管理或删除这些资源。By putting all your app resources in one resource group, you can easily manage or delete them together.
    位置Location 单击下拉箭头并选择一个位置。Drop down and select a location. 选择与要使用该缓存的其他服务靠近的区域Select a region near other services that will use your cache.
    定价层Pricing tier 单击下拉箭头并选择一个定价层Drop down and select a Pricing tier. 定价层决定可用于缓存的大小、性能和功能。The pricing tier determines the size, performance, and features that are available for the cache. 有关详细信息,请参阅用于 Redis 的 Azure 缓存概述For more information, see Azure Cache for Redis Overview.
  4. 选择“创建” 。Select Create.

    创建 Azure Redis 缓存

    备注

    缓存预配大约需要 15 到 20 分钟。You can expect the provisioning of the Cache to take around 15 to 20 minutes.

    可以在 Azure Cache for Redis 的“概述”页上监视进度。You can monitor progress on the Azure Cache for Redis Overview page. 如果“状态”显示为“正在运行”,则表示该缓存可供使用。When Status shows as Running, the cache is ready to use.

    创建的 Azure Redis 缓存

后续步骤Next steps

本快速入门教程介绍了如何创建 Azure Cache for Redis 实例。In this quickstart, you learned how to create an instance of Azure Cache for Redis.