Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed introduction of Windows Azure Redis caching service

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "detailed introduction of Windows Azure Redis caching service". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "detailed introduction of Windows Azure Redis caching service".

On August 20th, Windows Azure (Chinese version) began to provide Redis caching service, almost a year later than the international version of Microsoft Azure. To tell you the truth, Microsoft should not have delay this important function for such a long time. Caching service has become standard for many mainstream cloud products in China.

Redis caching service is a fully managed, high-throughput, low-latency, high-performance and secure PaaS service on Windows Azure. Fully compatible with the on-premises version of Redis.

The Redis caching service now includes two versions (levels):

Basic version: single node server.

Standard version: two-node server, master-slave replication.

Each version includes a different service size, that is, cache capacity. Different cache capacities correspond to different charging standards. The maximum cache capacity is 53GB.

Following the usual style of Windows Azure's new features-there is no configuration interface and can only be managed through PowerShell.

Switch to resource management mode

Switch-AzureMode-Name AzureResourceManager

Add a Windows Azure account. Login credentials in publishsettingsfile cannot be used in resource management mode. Therefore, even if you have previously imported publishsettingsfile, you have to re-add your Windows Azure account in order to pass authentication.

Add-AzureAccount-Environment AzureChinaCloud

Set current subscription

Select-AzureSubscription-SubscriptionId [subscribe to ID]

Create a new Windows Azure resource group

New-AzureResourceGroup-Name [windows Azure resource group name]-Location "China North"

Create a new Redis caching service. [Redis cache service name] must be "unique across the network". For example, if someone else uses "MyRedis-01", we cannot create a Redis cache service with the same name. Because this name will be used as part of the host name of the Redis cache service, for example: [Redis cache service name] .redis.cache.chinacloudapi.cn.

New-AzureRedisCache-ResourceGroupName [windows Azure resource group name]-Name [Redis cache service name]-Location "China North"

If no errors occur, the first Redis caching service is created successfully. You can use the Get-AzureRedisCache command to view the Redis cache service information that has been created.

If the following error message occurs, it is caused by the duplicate name of [Redis cache service name]. Just change the name.

New-AzureRedisCache: NameNotAvailable: An error occured when trying to reserve the DNS name for the cache instance. This may be a temporary issue if a cache instance of this name was recently deleted. Please choose a different name or try again later.RequestID=12cf91c9-8e92-4100-bff4-8ef3cae591a9 location line: 1 character: 1 + New-AzureRedisCache-ResourceGroupName testgroup-Name TestRedis01-L... + ~ + CategoryInfo: CloseError: (:) [New-AzureRedisCache], CloudException + FullyQualifiedErrorId: Microsoft.Azure.Commands.RedisCache.NewAzureRedisCache

The Redis caching service created using the above command defaults to the standard version (dual nodes) and 1GB capacity (C1). If you need to create different versions and sizes of Redis caching services, you can get a detailed list of command parameters by executing the following command.

Get-help New-AzureRedisCache-Detailed Thank you for your reading. The above is the content of "detailed introduction of Windows AzureRedis caching Service". After the study of this article, I believe you have a deeper understanding of the detailed introduction of Windows AzureRedis caching service, and the specific usage needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report