Re: in memory data
- From: "Alvin Bruney" <www.lulu.com/owc>
- Date: Sat, 15 Apr 2006 19:18:34 -0400
If data will be required for all users then application cache or globalThere is. A global variable is not thread safe. The cache is thread-safe.
var can be used, IMO there is no big difference.
Failure to acknowledge such conditions ultimately result in a misbehaving
applications.
--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Professional VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------
"Vadym Stetsyak" <vadym_s@xxxxxxx> wrote in message
news:OMmY4XxXGHA.4060@xxxxxxxxxxxxxxxxxxxxxxx
Hello, joshtobin!
j> so i need to store registered users nickname against a unique key
j> (telphone number) and a number they called, is it worth making a
dataset
j> just for this data? or would it be better to create a user object and
j> put it in an array list say?
It depends on how you want to access that data. How often you will access
it and how much of it will be there...
You can wrap that data into object and put it into Hashtable, with unique
key
j> Also is it better to use the application cache or a static variable in
j> the global.asax?
If data is valid only in the context of particular user that is -
session-bound, then answer can be session cache.
If data will be required for all users then application cache or global
var can be used, IMO there is no big difference.
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
.
- References:
- Re: in memory data
- From: Vadym Stetsyak
- Re: in memory data
- Prev by Date: Re: Local variables Vs Member Variables
- Next by Date: Delay inside a loop
- Previous by thread: Re: in memory data
- Next by thread: Delay inside a loop
- Index(es):
Relevant Pages
|