In ASP.NET I would like to store an object in the cache which has a dependancy on all the files in specific folder and its sub-folders. Just adding the object with a dependancy on the root folder doesn’t work. Is there in any reasonable way to do this other than creating a chain of dependancies on all the files?
Share
I believe you can roll your own cache dependency and use FileSystemMonitor to monitor the filesystem changes.
Update: Sample code below