@fuel-ts/account v0.94.6 • Docs
Class: MemoryStorage
Implements
Constructors
new MemoryStorage()
new MemoryStorage():
MemoryStorage
Returns
Properties
storage
storage:
Map
<string
,unknown
>
Defined in
packages/account/src/wallet-manager/storages/memory-storage.ts:4
Methods
clear()
clear():
Promise
<void
>
Returns
Promise
<void
>
Implementation of
Defined in
packages/account/src/wallet-manager/storages/memory-storage.ts:19
getItem()
getItem<
T
>(key
):Promise
<null
|T
>
Type Parameters
• T
Parameters
• key: string
Returns
Promise
<null
| T
>
Implementation of
Defined in
packages/account/src/wallet-manager/storages/memory-storage.ts:6
removeItem()
removeItem(
key
):Promise
<void
>
Parameters
• key: string
Returns
Promise
<void
>
Implementation of
Defined in
packages/account/src/wallet-manager/storages/memory-storage.ts:15
setItem()
setItem(
key
,value
):Promise
<void
>
Parameters
• key: string
• value: string
Returns
Promise
<void
>
Implementation of
Defined in
packages/account/src/wallet-manager/storages/memory-storage.ts:11