Reputation: 1
Not sure if I understand HTML5 storage correctly.
Is it just kind of a an advanced cookie store where user data can be persisted without a particular schema - like a key/value store?
If so, what types of features could it be used for?
I'm having a hard time imagining how it could be applied in a web app that already has its own server-side persistence mechanism - not to mention the complexity of performing sync between client storage and server-side storage.
Upvotes: 0
Views: 206
Reputation: 75981
Upvotes: 1
Reputation: 21466
Yes, its a key/value store.
It could be used for all kinds of things where the data doesn't need to be stored on the server. You're only limited to the ideas you can come up with.
One example I've seen is a notetaking app that stores all of your notes on your own computer. Nothing touches the server. (I think it was more a proof-of-concept. Realistically, I think the notes ought to be saved server-side and client-side, and kept in sync.)
Upvotes: 1
Reputation: 70819
Wouldn't it be great if you didn't have to send everything server-side every time you changed something? What if you were going to be disconnected from the net for a bit but still wanted to carry on? Just because you're used to persisting data server-side, doesn't mean it wouldn't be better to persist it (temporarily at least) client-side.
Upvotes: 0