I would like to know if there is a way to cache the .NET cache in a table or database file, not in the cache in memory, but also use the CacheDependency infrastructure. I think the Enterprise Library can do this, but I would prefer something simpler if possible.
To explain, I want cached data to be placed in an SQL table or in a file on disk, and not in memory. Then I want to specify a CacheDependency, which can be SqlCacheDependency or CacheDependency in a file or AggregateCacheDependency.
The reason is because I am doing intensive calculations based on xml documents (which change once a day or so). The results of these calculations are stored in memory. However, if the website is reset, the cache is lost. It would be nice to have a backup cache in the database.
source share