PC Review


Reply
Thread Tools Rate Thread

Access to values in config, are they cached?

 
 
Bob
Guest
Posts: n/a
 
      27th Jul 2004
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


 
Reply With Quote
 
 
 
 
Shiva
Guest
Posts: n/a
 
      28th Jul 2004
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.

" Bob" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
App.Config cached for DLL called by ASP.Net? CrazyOnYou Microsoft ASP .NET 1 20th Dec 2006 04:13 AM
How to access web.config deny and allow users tag values? profdotnet Microsoft C# .NET 5 9th Jun 2006 01:58 PM
web.config customErrors cached? Kelmen Wong Microsoft ASP .NET 1 2nd Aug 2004 04:48 AM
When is app.config is read/cached? =?Utf-8?B?S3Jpc3Rlbg==?= Microsoft Dot NET Framework 0 9th Feb 2004 07:41 PM
Web.Config Cached??? =?Utf-8?B?Qm9iIFNtaXRo?= Microsoft ASP .NET 1 4th Feb 2004 02:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:41 PM.