Access to values in config, are they cached?

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

For the appsettings values in .config files, is it cached for very fast
access once a value is accessed? E.g. if I have to call this:
ConfgiurationSettings.AppSettings["MyID"]; on every user action, is it
better off to just store the value in a, say, global static variable?

Thanks
Bob
 
Hi,
appSettings key/value pairs are cached internally; they are not read from
the config file everytime you read them, but just on the first read of any
appsetting param.

For the appsettings values in .config files, is it cached for very fast
access once a value is accessed? E.g. if I have to call this:
ConfgiurationSettings.AppSettings["MyID"]; on every user action, is it
better off to just store the value in a, say, global static variable?

Thanks
Bob
 
Back
Top