Caching and performance
provider.Get<MySettings>(); // may block and incurs binding costs
provider.Get<MySettings>(); // instantly returns a cached object
// ... the source issues a data update ...
provider.Get<MySettings>(); // instantly returns the old cached object
// ... the cache is automatically updated in background...
provider.Get<MySettings>(); // instantly returns an updated cached objectvar settings = new ConfigurationProviderSettings
{
MaxSourceCacheSize = 100_000
};
var provider = new ConfigurationProvider(settings);Related pages
Configuration providerLog settings updatesObtain settings from providerObserve settings via providerLast updated
Was this helpful?