Skip to main content

core.memorystorage.setitem

Home > @medplum/core > MemoryStorage > setItem

MemoryStorage.setItem() method

Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.

Signature:

setItem(key: string, value: string | null): void;

Parameters

ParameterTypeDescription
keystringThe storage key.
valuestring | nullThe new value.

Returns:

void