Jerry Nixon
Jerry Nixon

Reputation: 31803

Choosing Windows Phone IsolatedStorage

My web service returns some data. I want to cache it.

Do I use this and serialize it to a file?

IsolatedStorageFile.GetUserStoreForApplication()

Or do I use this and stick it into the Dictionary?

IsolatedStorageSettings.ApplicationSettings

Upvotes: 1

Views: 258

Answers (1)

Chris Sainty
Chris Sainty

Reputation: 9306

For caching data I would stick it in a file in IsolatedStorage.
It is a little more work, but you can write a simple enough wrapper around it.

It is conceivable that IsolatedStorageSettings.ApplicationSettings will one day be synced between devices using SkyDrive, this is the direction Microsoft are taking with Windows 8. So you should stick to using it for it's purpose which is application based settings.

Upvotes: 1

Related Questions