How can I get the item being removed when CacheItemUpdateCallback is called
Posted
by gonxalo
on Stack Overflow
See other posts from Stack Overflow
or by gonxalo
Published on 2010-03-25T20:05:24Z
Indexed on
2010/03/25
20:13 UTC
Read the original article
Hit count: 539
I want to avoid an item being removed from cache when expire in SOME OCASIONS
If i understand how CacheItemUpdateCallback works, i need to asign to expensiveObject the new object, in my case: the old one. But i cant access the item with HttpContext.Current.Cache[key],
my question: how to access it? or in other words, How avoid this item being removed.?
© Stack Overflow or respective owner