Access to values in config, are they cached?

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
 
S

Shiva

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top