MemoryStorage

Icon LinkClass: MemoryStorage

@fuel-ts/account .MemoryStorage

Icon LinkImplements

Icon LinkConstructors

Icon Linkconstructor

new MemoryStorage(): MemoryStorage

Icon LinkReturns

MemoryStorage

Icon LinkProperties

Icon Linkstorage

storage: Map<string, unknown>

Icon LinkDefined in

packages/account/src/wallet-manager/storages/memory-storage.ts:4 Icon Link

Icon LinkMethods

Icon Linkclear

clear(): Promise<void>

Icon LinkReturns

Promise<void>

Icon LinkImplementation of

StorageAbstract .clear

Icon LinkDefined in

packages/account/src/wallet-manager/storages/memory-storage.ts:19 Icon Link


Icon LinkgetItem

getItem<T>(key): Promise<null | T>

Icon LinkType parameters

Name
T

Icon LinkParameters

NameType
keystring

Icon LinkReturns

Promise<null | T>

Icon LinkImplementation of

StorageAbstract .getItem

Icon LinkDefined in

packages/account/src/wallet-manager/storages/memory-storage.ts:6 Icon Link


Icon LinkremoveItem

removeItem(key): Promise<void>

Icon LinkParameters

NameType
keystring

Icon LinkReturns

Promise<void>

Icon LinkImplementation of

StorageAbstract .removeItem

Icon LinkDefined in

packages/account/src/wallet-manager/storages/memory-storage.ts:15 Icon Link


Icon LinksetItem

setItem(key, value): Promise<void>

Icon LinkParameters

NameType
keystring
valuestring

Icon LinkReturns

Promise<void>

Icon LinkImplementation of

StorageAbstract .setItem

Icon LinkDefined in

packages/account/src/wallet-manager/storages/memory-storage.ts:11 Icon Link