views:

157

answers:

1

I heard that .NET 4 has a new caching API.

Okay, so the good old System.Web.Caching.Cache (which is, by the way, still there in .NET 4) has the ability to set so-called CacheDependency objects to determine whether a cached item is expired or not.

One can also specify custom logic for determining whether a cached item is still useable or not by deriving a custom subclass from CacheDependency.

I'm curious, is there a way to provide such a logic in the new API?

+3  A: 

I haven't really used it yet but classes derived from ChangeMonitor Class appear to serve a similar purpose.

Ben Robinson
@Ben, thank you very much! :)
Venemo
@Ben, I gave you your well deserved upvote. (Previously, I used up all for the day.)
Venemo