Persist Javascript library

The Persist API can save array and collection of the Array API across application sessions using string as keys.

This API is only supported on Mobile Widgets version of the MeMo, and should now only be used to support data provided by the Rpc API.
It is not supproted by Tiny Mobile Widgets version.


1.4.1


boolean exists (String key):
Return true if a value associated to key exists.

boolean setRecord (String key, value):
Save the the value using key. Any previous value associated to key is overridden and lost. The type of value can be a string, an integer, a float, or a reference to an array or collection of the Array API.

value getRecord (String key):
Retrieve the value stored using a given key. Return -1 on error. The type of value can be a string, an integer, a float, or a reference to an array or collection of the Array API.

void deleteRecord (String key):
Delete the data associated to the key.

void setStore (String storeName):
Use another database store named storeName.

Warning:
This method is only available with special rights. Regular widgets cannot use this method.

void deleteStore (String storeName):
Delete a database named storeName.

Warning:
This method is only available with special rights. Regular widgets cannot use this method.