I have the following line of code called very often:
var configValue = System.Configuration.ConfigurationManager.AppSettings["ConfigValueKey"];
Do I take a disk hit for ASP.Net to retrieve the item from the web.config, or is it smart enough to cache the value in memory and only refresh the cache when the web.config changes?
It is smart enough to cache all the attributes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With