Persisting isolatedstoragecache across sessions

Topics: Caching Application Block
Dec 8, 2011 at 9:22 AM

Hi,

The Isolatedstoragecache seems to lose the cache items if the app is refreshed. This is in the silverlight app. I instantiate the cache in my bootstrapper. All works fine until the user refreshes the browser. The cache items are lost then!

Is this intentional?

Cheers!

Ganesh

Dec 9, 2011 at 12:01 AM
Edited Dec 9, 2011 at 5:04 AM

You shouldn't lose your cache when the app is refreshed.  IsolatedStorageCaching should work.  Are you sure you are not using the InMemoryCache (it's the default in various samples)?

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com

Dec 9, 2011 at 3:02 AM

Yep. I am using IsolatedStorageCache.

Dec 9, 2011 at 3:05 AM
Edited Dec 9, 2011 at 3:06 AM

Can you post your configuration and some code where you load the config, add and retrieve from the cache?

Thanks.

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com