Skip to main content

bn.getStorage

getStorage<T>(options): Promise<{ data: T }>

description Gets the specified object asynchronously from the local cache key The content of.

example

 bn.getStorage({   key: 'key',   success (res) {     console.log(res.data)   } })

Type parameters

NameType
Tunknown

Parameters

NameType
optionsGetStorageOptions

Returns

Promise<{ data: T }>


Interface: GetStorageOptions#

NameTypeDescription
keystringSpecified in the local cache key