This class provides methods to access the key-value pair store. It provides a fast and easy way to get or set
key-value pairs in localStorage
without using SQL. These keys will never be synchronized with the host, nor are there manifest based default values, and notifications are not used. This object can
be obtained using one of the createKeyDatabase methods in class
factory.
Key values can be of type integer, string, boolean, array, or dictionary.
Member Properties:
- identity - gets the identity this keyDatabase is bound to.
Member Methods:
- getValueForKey - returns a value for a key from the key-value store.
- getValueForKeyWithDefault - returns a value for a key from the key-value store. If the key does
not exist, the defaultValue argument will be returned.
- keyExists - determines if a key exists in the key-value store.
- listKeysWithPrefix - lists keys from the key-value store.
- removeKey - removes a value for a key in the key-value store.
- removeKeysWithPrefix - removes keys from a key-value store.
- setValueForKey - sets a value for a key in the key-value store.