Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Hashtable in Cahe seems to have items removed

Reply
Thread Tools

Hashtable in Cahe seems to have items removed

 
 
bloodsugarsuckerfish
Guest
Posts: n/a
 
      03-07-2008
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
 
Reply With Quote
 
 
 
 
Sergey Zyuzin
Guest
Posts: n/a
 
      03-07-2008
On Mar 7, 2:24*pm, bloodsugarsuckerfish
<bloodsugarsuckerf...@googlemail.com> wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Items removed from cache without a reason, why? (CacheItemRemovedReason) angeladipierro Software 1 11-02-2010 05:20 PM
Re: hashtable or map? (map inserts not behaving as I expect - and I cant find a decent simple example for hashtable) Kai-Uwe Bux C++ 1 12-21-2008 09:25 PM
getting items from Hashtable Lee C++ 1 11-02-2004 05:30 PM
Hashtable values seems not probably retrieved... I'm New to Java Java 9 07-15-2004 02:11 AM
Location tag in cahe directive not working?? .NET Follower ASP .Net 0 02-05-2004 08:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57