Cache Application Settings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi
I have used the System.Web.Context class to hold my Web application settings in cache for use
Is there a way to do the same with a windows application to hold those settings in a cached state
I have looked all thourgh the .Net Framework looking for an eqiveliant class but i am have trouble finding one that would work the same
Could someone please point me to the proper class to use

Thanks ron
 
Depending on your requirements, this could be as simple as creating a class that implements the Singleton pattern to hold your settings. If you have more advanced requirements, you may wish to have a look at the MS caching block.
 
The simplest way to do this is to use the AppDomain cache, which works just
like the Web Cache class, but without all the bells and whistles.
System.AppDomain.CurrentDomain.SetData
and GetData
--Peter
 
Back
Top