LocalForage is a JavaScript library that allows for asynchronous storage of data in browsers via IndexedDB, WebSQL, and localStorage. It supports storing common data types like strings, numbers, blobs and arrays as well as custom data types. The library can be installed via Bower and provides asynchronous methods for setting, getting, and removing items from storage.
Localforage - fast and simple storage library for JavaScript.
1.
2. BENEFITS
● Asynchronous API with callbacks
● IndexedDB, WebSQL, and localStorage
drivers (managed automatically; the best
driver is loaded for current browser)
● Ability to create and use custom drivers.
● Blob and arbitrary type support, so you can
store images, files, etc.