this article, we will see how to use Azure Redis cache to cache your data and provide a faster way of loading the web pages to the users.
What is the Azure Redis cache?
Azure Redis Cache is based on the popular open source Redis cache. It gives you access to a secure, dedicated Redis cache, managed by Microsoft and accessible from any application within Azure.
Why would I use the Azure Redis Cache?
Azure Redis Cache helps your application become more responsive even as the customer load increases. It takes advantage of the low-latency, high-throughput capabilities of the Redis engine. This separate, distributed cache layer allows your data tier to scale independently for more efficient use of the compute resources in your application layer.
Let's go to the best part.. follow these steps to reproduce:
First, you must have your Azure Redis Cache set up.
Wait until it finishes deploying (it takes some minutes, do not worry).
Now, create a new MVC ASP.NET Core project and install the NuGet package: Microsoft.Extensions.Caching.Redis.Core
Project on GitHub.