Caching App Configuration values in Azure Cache for Redis
- Create
Azure Cache for Redis
in the Azure Portal
.

Using App Configuration values in Azure Cache for Redis is simple and can increase the performance of the Azure App.
In .NET Application
install the Microsoft.Extensions.Caching.StackExchangeRedis
NuGet Package.
builder.AddAzureAppConfiguration(options =>
{
options.Connect(redisCache, "Your App Configuration Connection String from Portal");
});
Code reference taken from App Configuration
Thanks @Jaydeep Patil for the explanation.
When we use In-Memory Cache then in that case data is stored in the application server memory and whenever we need then we fetch data from that and use it wherever we need it.
If your application has only one instance, then using In-memory cache is a better option.
Thanks @Krunal Trivedi for a Step-by-Step Demo.
Azure Redis Cache is an in-memory database and that means if there is a hardware failure, there is a potential for data loss.
With the basic and standard pricing tier, you can have just a single node and if that fails, you have got no persistence of the data.
To persist and recover from hardware failure, use a premium pricing tier implementation.
As you have mentioned caches the values for a specified time (30 min), then using In-memory
cache is advised.