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
Parameter | Type | Description |
---|---|---|
key | string | The storage key. |
value | string | null | The new value. |
Returns:
void