list in memory

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

Guest

For an asp.NET app. I have a list that I want to keep in memory.

My choices are keeping the list in an asp.NET listbox control, session
object, database, xml file.

This list has values that need to be checked against the stack. If they're
in the stack then they're in use, if not then I'm going to use or replace the
values with new values I can use.

What good consulting advice regarding this model and ways to keep a list in
memory can anyone provide?

Regards;

Segue
 
segue said:
For an asp.NET app. I have a list that I want to keep in memory.

My choices are keeping the list in an asp.NET listbox control, session
object, database, xml file.

This list has values that need to be checked against the stack. If they're
in the stack then they're in use, if not then I'm going to use or replace the
values with new values I can use.

What good consulting advice regarding this model and ways to keep a list in
memory can anyone provide?

Regards;

Segue
Why not an array?

Tom
 
Yes this may be OK. I have to do some tests is there any other
way to keep an array in memory because as a session object
it expires? This array is constantly getting updated.
 
yes you may store it in a singleton class

you can easy create this with a module and access it from anny page ,,,
however keep in mind that doing so will make it availlable to all clients so
if the data is user specific ,, you should create a key value pair ( that is
why i love the hashtable so much , cause it is also the fastest collection
like object )

regards

Michel Posseth [MCP]
 
What would you use for the Key? Possibly the Session ID?
--
Dennis in Houston


m.posseth said:
yes you may store it in a singleton class

you can easy create this with a module and access it from anny page ,,,
however keep in mind that doing so will make it availlable to all clients so
if the data is user specific ,, you should create a key value pair ( that is
why i love the hashtable so much , cause it is also the fastest collection
like object )

regards

Michel Posseth [MCP]

segue said:
Yes this may be OK. I have to do some tests is there any other
way to keep an array in memory because as a session object
it expires? This array is constantly getting updated.
 
Hi,

I think the singleton class is the answer I'm looking for thank you.

I'm reading and trying to implement:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenetchapt05.asp

So I'll let you know how it goes.

Thanks;

Segue

m.posseth said:
yes you may store it in a singleton class

you can easy create this with a module and access it from anny page ,,,
however keep in mind that doing so will make it availlable to all clients so
if the data is user specific ,, you should create a key value pair ( that is
why i love the hashtable so much , cause it is also the fastest collection
like object )

regards

Michel Posseth [MCP]

segue said:
Yes this may be OK. I have to do some tests is there any other
way to keep an array in memory because as a session object
it expires? This array is constantly getting updated.
 

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

Back
Top