Azure Redis Cache is built on top of an open source called Redis (https://github.com/antirez/redis), which is an in-memory database and persists on a disk. As per Microsoft (https://azure.microsoft.com/en-in/services/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."
Getting started with Azure Redis Cache is very simple with the help of these steps:
- Create a web API project—refer to our code example in Chapter 2, Implementing Microservices.
- Implement Redis—for a referral point use https://github.com/StackExchange/StackExchange.Redis and install the Install-Package StackExchange.Redis NuGet package.
- Update your config file for CacheConnection (https://docs.microsoft.com/en-us/azure/redis-cache/cache-web-app-howto#configure-the-application-to-use-redis-cache).
- Then publish on Azure (https://docs.microsoft.com/en-us/azure/redis-cache/cache-web-app-howto#publish-the-application-to-azure).
You can also use this template to create Azure Redis Cache:
https://github.com/Azure/azure-quickstart-templates/tree/master/201-web-app-redis-cache-sql-database
For complete details on Azure Redis Cache refer to this URL:
https://docs.microsoft.com/en-us/azure/redis-cache/
https://github.com/Azure/azure-quickstart-templates/tree/master/201-web-app-redis-cache-sql-database
For complete details on Azure Redis Cache refer to this URL:
https://docs.microsoft.com/en-us/azure/redis-cache/