Hashtable in Cahe seems to have items removed

  • Thread starter bloodsugarsuckerfish
  • Start date
B

bloodsugarsuckerfish

Hi all,

I have in the ASP.NET cache a Hashtable of items. What seems to be
happening,is that some of the actual entries in the hashtable are
being removed, perhaps under memory pressure, when what I would have
expected is that the actual hashtable be removed.

I cannot see an other reason that the items would be removed, other
than by the Cache itself.

Has anyone else experienced this, is t expeced behaviour, or am I
missing something?

Thanks

Rich
 
S

Sergey Zyuzin

Hi all,

I have in the ASP.NET cache a Hashtable of items. What seems to be
happening,is that some of the actual entries in the hashtable are
being removed, perhaps under memory pressure, when what I would have
expected is that the actual hashtable be removed.

I cannot see an other reason that the items would be removed, other
than by the Cache itself.

Has anyone else experienced this, is t expeced behaviour, or am I
missing something?

Thanks

Rich

Hi Rich,

I don't think entries can just disappear.
If you are sure your code doesn't delete entries, I can only suppose
that this might be a multithreading problem. Do you access your
hashtable in a thread-safe way?

Thanks,
Sergey
 

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top