Skip to content

AppStorage - puppeteerApp

Kind: global class

The cache data, similar to localStorage, but it is application-level storage and will not be cleared when clearing the cache.

AppStorage.setItem(key, value)

Set the storage item Sets an item in the application storage with the given key and value. If the value is null, the item will be removed.

Kind: static method of AppStorage

ParamTypeDescription
keystringThe key of the item to set or remove.
value*The value of the item to set. If null, the item will be removed.

AppStorage.getItem(key) ⇒ string

Get the storage item. Retrieves an item from the application storage with the given key.

Kind: static method of AppStorageReturns: string - - The value of the item associated with the key, or null if the key does not exist.

ParamTypeDescription
keystringThe key of the item to retrieve.

AppStorage.removeItem(key)

remove the storage item Removes an item from the application storage with the given key.

Kind: static method of AppStorage

ParamTypeDescription
keystringThe key of the item to remove.

AppStorage.clear()

Clear the storage Clears all items from the application storage.

Kind: static method of AppStorage