core.memorystorage.setitem | Medplum
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 [](/content/docs/sdk/core.memorystorage.setitem#parameters "Direct link to Parameters"/index.html)
| Parameter | Type | Description |
|---|---|---|
| key | string | The storage key. |
| value | string | null | The new value. |
Returns:
void