I am using Caching Application Block for caching. I have a few large objects that are cached. The issue is that items are removed from cache because of Scavenging. Now since fetching objects again from database is expensive, I am thinking of using IsolatedStorage to also persist objects on disk. Have the following questions:
-
Say an item A is removed from cache because of scavenging. Will it also be removed from IsolatedStorage ? If it does then what is the purpose of persisting in IsolatedStorage. I wanted to use IsolatedStorage so that even if item is scavenged, it at least can be picked and populated from the storage ?
-
Since the objects are huge, I want to refresh them only once in 24 hours. But the only way to replace them so that there is no affect on end user is to first fetch items and then replace them in cache rather than allow to expire and then start fetching data ?
1 Answer