bn.getStorageInfo
▸ getStorageInfo(): Promise
<StorageInfo
>
description
Gets information about the current storage asynchronously.
example
bn.getStorageInfo({
success (res) {
console.log(res.keys)
console.log(res.currentSize)
console.log(res.limitSize)
}
})
Returns
Promise
<StorageInfo
>
StorageInfo
Interface: StorageInfo
Name | Type | Description |
---|---|---|
keys | string [] | All keys in the current storage |
currentSize | number | Current space occupied (in KB) |
limitSize | number | Space size limit (in KB) |