Local DB
Description
The Local DB system provides access to the browser's local storage, allowing you to store and retrieve data that persists between page refreshes and browser sessions.
Methods
localDbGet(key)
Retrieves a value from local storage by key.
localDbSet(key, value)
Stores a value in local storage under a specified key.
localDbDel(key)
Deletes a value from local storage by key.
Complete Example
Important Notes
Data is stored in the user's browser local storage
Data persists between page refreshes and browser sessions
Storage is limited to the browser's local storage capacity
Data is specific to the domain/origin of the page
Values are automatically serialized to JSON when stored
Returns
null
if a key doesn't exist
Last updated
Was this helpful?