Chapter 2
Enrich Your App Using Azure Features and Services
Section 5
Switching to Distributed Cache and Session with Azure Redis Cache
We will increase the web queries performance by using cache in the context of Azure App Service, by leveraging the distributed cache engine to be used for storing session information across instances. - Provision an Azure Redis Cache instance, with Basic C0 SKU (for demo) - Application code: implement Redis Cache with the Nuget package: Microsoft.Extensions.Caching.Redis, and the configuration in Startup.csand appsettings - Application code: use the Azure Redis Cache servicein code (example: StoreManagerController) and in the session configuration