Is there some sort of CacheDependency in System.Runtime.Caching?
Posted
by Venemo
on Stack Overflow
See other posts from Stack Overflow
or by Venemo
Published on 2010-05-22T21:22:27Z
Indexed on
2010/05/22
22:10 UTC
Read the original article
Hit count: 2095
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?
© Stack Overflow or respective owner