neoLocalStorage
Improved persistent local storage based on library LocalForage:
https://localforage.github.io/localForage/
localForage is a JavaScript library that improves the offline experience of your web app by using an asynchronous data store with a simple, localStorage-like API. It allows developers to store many types of data instead of just strings.
localForage includes a localStorage-backed fallback store for browsers with no IndexedDB or WebSQL support. Asynchronous storage is available in the current versions of all major browsers: Chrome, Firefox, IE, and Safari (including Safari Mobile).
neoSetItem
Purpose: |
Saves data to an offline store. You can store the following types of data: Numbers, strings, arrays, JSON objects. |
Category: |
neoLocalStorage |
Syntax: |
neoSetItem "thekey" thevalue subroutine
thekey Label or name assigned to the data thevalue Data to be saved subroutine Subroutine to call after saving (optional) |
neoGetItem
Purpose: |
Gets an item from the storage library and supplies the result to a callback. If the key does not exist, will return null. |
Category: |
neoLocalStorage |
Syntax: |
neoGetItem "thekey" [thevar] subroutine
thekey Label or name assigned to the data thevar Variable to store result subroutine Subroutine to execute after successful loading (optional) |
neoRemoveItem
Purpose: |
Removes the value of a item from the offline store. |
Category: |
neoLocalStorage |
Syntax: |
neoRemoveItem "thekey" subroutine
thekey Label or name assigned to the data subroutine Subroutine to execute after deleting the item (optional) |
neoClearItems
Purpose: |
Removes every item from the database, returning it to a blank slate. |
Category: |
neoLocalStorage |
Syntax: |
neoClearItems subroutine
subroutine Subroutine to execute after deleting all the items (optional) |
neoGetItemsLength
Purpose: |
Gets the number of items in the offline store (i.e. its “length”). |
Category: |
neoLocalStorage |
Syntax: |
neoGetItemsLength [thevar] subroutine
thevar Variable to store result subroutine Subroutine to execute after getting the length (optional) |
neoGetItemsNames
Purpose: |
Get the list of all items labels or names in the datastore. |
Category: |
neoLocalStorage |
Syntax: |
neoGetItemsNames [thevar] subroutine
thevar Array to store the labels subroutine Subroutine to execute after getting the items names (optional) |