Store
Overview
This document provides a comprehensive list of all available store functions in the dphelper
library along with their descriptions and examples.
Functions
store.get([store.name])
Description: Retrieve an item from local storage.
Parameters:
name
(string): The name of the item to retrieve.
Example:
store.set([name, value])
Description: Set an item in local storage.
Parameters:
name
(string): The name of the item to set.value
(any): The value of the item to set.
Example:
store.delete([store.name])
Description: Delete an item from local storage.
Parameters:
name
(string): The name of the item to delete.
Example:
store.clearAll()
Description: Clear all items from local storage.
Parameters: None
Example:
store.quota()
Description: Estimate the storage quota and usage.
Parameters: None
Example:
store.size()
Description: Calculate the total size of all items in local storage.
Parameters: None
Example:
License
This project is licensed under the MIT License.
Last updated