jskeystore
jskeystore is a simple Javascript library I built to store data in a client-side database in Mobile Safari in a way that feels like memcached and hides the complexities and verbosity of using sqlite.
It’s very simple to use. Here is some example code:
var cache = new JSKeyStore();
var person = { first_name: 'Mike', last_name: 'Mayo' };
cache.set('person', person);
cache.get('person', function(obj) {
person = obj;
});
cache.destroy('person');
Behind the scenes, this creates a ‘person’ table with one row and one column that contains the JSON string of the person object.
It is available on GitHub.