Skip to main content

StorageFacade

@icure/medical-device-sdk / StorageFacade

Interface: StorageFacade<T>

Type parameters

Name
T

Implemented by

Table of contents

Methods

Methods

getItem

getItem(key): Promise<undefined | T>

Returns the value of the provided key from the storage

Parameters

NameTypeDescription
keystringKey of the value to retrieve

Returns

Promise<undefined | T>

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

Defined in

node_modules/@icure/api/icc-x-api/storage/StorageFacade.d.ts:7


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>

Defined in

node_modules/@icure/api/icc-x-api/storage/StorageFacade.d.ts:18


setItem

setItem(key, valueToStore): Promise<void>

Set an item in the storage for the given key

Parameters

NameTypeDescription
keystringKey of the value to set
valueToStoreT

Returns

Promise<void>

Defined in

node_modules/@icure/api/icc-x-api/storage/StorageFacade.d.ts:13