miher
8/10/2009 8:11:00 PM
"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