core.medplumclientoptions.storage | Medplum

MedplumClientOptions.storage property [​](/content/docs/sdk/core.medplumclientoptions.storage#medplumclientoptionsstorage-property "Direct link to MedplumClientOptions.storage property"/index.html)

Storage implementation.

Default is window.localStorage (if available), this is the common implementation for use in the browser, or an in-memory storage implementation. If using Medplum on a server it may be useful to provide a custom storage implementation, for example using redis, a database or a file based storage. Medplum CLI is an an example of FileSystemStorage, for reference.

Signature:

storage?: IClientStorage;