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
Name | Type |
---|---|
T | unknown |
Parameters
Name | Type |
---|---|
options | GetStorageOptions |
Returns
Promise
<{ data
: T
}>
Interface: GetStorageOptions
Name | Type | Description |
---|---|---|
key | string | Specified in the local cache key |