Practice Reference with Redis Cache in China Azure

Some points of using Azure Redis Cache:

 

Get started with Redis Cache now:

  • Create Redis Cache with Azure PowerShell

 

PS C:\> Add-AzureRmAccount -EnvironmentName azurechinacloud

Log in with your azure account

PS C:\> New-AzureRmRedisCache -ResourceGroupName myEastRG1 -Name myRedis -Location chinaeast -Sku Basic -Size 1GB

Name               : myRedis

Id                 : /subscriptions/030********0d******9/resourceGroups/myEastRG1/providers/Microsoft.Cache/Redis/myRedis

Location           : China East

Type               : Microsoft.Cache/Redis

HostName           : myRedis.redis.cache.chinacloudapi.cn

Port               : 6379

ProvisioningState  : Creating

SslPort            : 6380

RedisConfiguration : {[maxclients, 1000], [maxmemory-reserved, 50], [maxmemory-delta, 50]}

EnableNonSslPort   : False

RedisVersion       : 3.0

Size               : 1GB

Sku                : Basic

ResourceGroupName  : myEastRG1

PrimaryKey         : b/SIH***********Ad4=

SecondaryKey       : 8PD***9qG**************o****=

VirtualNetwork     :

Subnet             :

StaticIP           :

TenantSettings     : {}

ShardCount         :

 

Reference: https://www.azure.cn/documentation/articles/cache-dotnet-how-to-use-azure-redis-cache/

 

  • Use .Net code to access Redis Cache

 

https://azure.microsoft.com/en-us/documentation/articles/cache-dotnet-how-to-use-azure-redis-cache/

https://www.azure.cn/documentation/articles/cache-dotnet-how-to-use-azure-redis-cache/

Leave a Reply

Your email address will not be published. Required fields are marked *