简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM