Skip to main content

LocalStorageImpl

@icure/medical-device-sdk / LocalStorageImpl

Class: LocalStorageImpl

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new LocalStorageImpl()

Methods

getItem

getItem(key): Promise<undefined | string>

Returns the value of the provided key from the storage

Parameters

NameTypeDescription
keystringKey of the value to retrieve

Returns

Promise<undefined | string>

The value associated to the provided key or undefined if not found.

Implementation of

StorageFacade.getItem

Defined in

node_modules/@icure/api/icc-x-api/storage/LocalStorageImpl.d.ts:3


removeItem

removeItem(key): Promise<void>

Removes the item with the given key from the storage.

Parameters

NameTypeDescription
keystringThe key of the item to remove.

Returns

Promise<void>

Implementation of

StorageFacade.removeItem

Defined in

node_modules/@icure/api/icc-x-api/storage/LocalStorageImpl.d.ts:4


setItem

setItem(key, valueToStore): Promise<void>

Set an item in the storage for the given key

Parameters

NameTypeDescription
keystringKey of the value to set
valueToStorestring

Returns

Promise<void>

Implementation of

StorageFacade.setItem

Defined in

node_modules/@icure/api/icc-x-api/storage/LocalStorageImpl.d.ts:5