No not at all. localforage is just a thin wrapper on the browser's localStorage or its IndexedDB capability.
The advantage with localforage is that it's a really simple API interface. Just getItem(), setItem() and removeItem(). Really easy to use.
Normally I just use localforage to store a blob of text that is a piece of JSON. In fact, that's what localforage takes care of for you automatically. You do `localForage.setItem('key', {foo: 'value'})` and then you can do `localForage.getItem('key').then(function(thing) { alert( thing.foo) })`
Comment
Do I need a server to use localforage? I wanted offline capabilities for an app without any server, but handling data storage and retrieval.
Replies
No not at all. localforage is just a thin wrapper on the browser's localStorage or its IndexedDB capability.
The advantage with localforage is that it's a really simple API interface. Just getItem(), setItem() and removeItem(). Really easy to use.
Normally I just use localforage to store a blob of text that is a piece of JSON. In fact, that's what localforage takes care of for you automatically. You do `localForage.setItem('key', {foo: 'value'})` and then you can do `localForage.getItem('key').then(function(thing) { alert( thing.foo) })`