I'm looking for a database that I can distribute with a web application, that will store user preferences for various widgets.
A good example is t开发者_StackOverflow社区he kind of database design that apple uses to store information about its widgets. So the weather widget stores location, while the notes widget stores notes.
I think I'm looking for a document-oriented database, but I'm not really sure.
Any help would be fantastic.
Thanks! Matt
sqlite now comes as standard with PHP, and [g]dbm was there for a very long time but I believe has been dropped recently (can't seem to see any replacement for it - chdb?).
C.
you can simply use localStorage see support details here: http://www.quirksmode.org/dom/html5.html#localstorage
You could try CouchDB or MongoDB as far as document-oriented database. It really depends though what is being stored. A key-value store such as redis might also work.
Personally, I've used a lot of CouchDB and redis so far. CouchDB powers our storage backend (citation-related data) and redis is our session store.
Care to elaborate how people can help you further?
精彩评论