[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.caching

Items Unexpectedly Removed from Application Cache

Jonathan Orgel

8/7/2009 5:29:00 PM

We are using the System.Web.Caching.Cache object to store date in the
application cache. The insert method

MyCache.Insert(key,

myObject,

null, // CacheDependencies
Cache.NoAbsoluteExpiration,

Cache.NoSlidingExpiration,

CacheItemPriority.NotRemovable,

new CacheItemRemovedCallback(ItemRemovedCallback));

indicates the objects should be kept forever. On one of our QA (VM) machines
we have noticed that the object disapears after aproximately 20 minutes of
inaction.

Can anyone explain why this might happen?

Thanks

Jonathan Orgel







1 Answer

miher

8/10/2009 8:11:00 PM

0



"Jonathan Orgel" <jonathan@srssoft.com> az alábbiakat írta a következo
üzenetben news:unM7bR4FKHA.3396@TK2MSFTNGP04.phx.gbl...
> We are using the System.Web.Caching.Cache object to store date in the
> application cache. The insert method
>
> MyCache.Insert(key,
>
> myObject,
>
> null, // CacheDependencies Cache.NoAbsoluteExpiration,
>
> Cache.NoSlidingExpiration,
>
> CacheItemPriority.NotRemovable,
>
> new CacheItemRemovedCallback(ItemRemovedCallback));
>
> indicates the objects should be kept forever. On one of our QA (VM)
> machines we have noticed that the object disapears after aproximately 20
> minutes of inaction.
>
> Can anyone explain why this might happen?
>
> Thanks
>
> Jonathan Orgel

Hi,

Please check the CacheItemRemovedReason when the callback is called to see
what is the reason the element is getting removed.
-Zsolt