开发者

How can I get the item being removed when CacheItemUpdateCallback is called

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 the old item? or in other words, How prevent this item being removed in th开发者_高级运维e first place?


You can use the HttpRuntime to access the Cache.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜