I am using Azure App Configuration for loading config into my Azure Functions. https://learn.microsoft.com/en-us/dotnet/api/overview/azure/data.appconfiguration-readme?view=azure-dotnet-preview
I am using a free
plan, and I ran into request throttled issue because of the default 30 seconds cache expiration. [at least I believe so]
To prevent this I used SetCacheExpiration
as follow,
builder.AddAzureAppConfiguration(options =>
{
options.Connect(this.Values.AppConfigConnectionString)
.ConfigureRefresh(refresh =>
{
// default is 30 seconds
refresh.SetCacheExpiration(TimeSpan.FromDays(10));
});
options.Select(keyFilter: KeyFilter.Any, labelFilter: this.Values.Env);
});
I do not need to refresh this key-value, because it's not going to change frequently. So my question is, is it possible to disable this cache expiration?
If so, how? If not, what should be the workaround?
TIA, Kiran.