I would like to know if there is a way to use .NET's CacheDependency infrastructure, but cache to a database table or file, rather than the in-memory cache. I think the Enterprise Library may be able to do this but I would prefer something simpler if possible.
I want the cached data to be put in an SQL table or into a file on disk, rather than in-memory. The CacheDependency could be an SqlCacheDependency, or a CacheDependency on a file or an AggregateCacheDependency.
I do intensive calculations based on xml documents (that change once a day or so). The results of these calculations I cache in memory. However if the website is reset, the cache is lost. It would be nice to have a backup cache in the database.