Skip to main content

core.medplumclientoptions.storage

Home > @medplum/core > MedplumClientOptions > storage

MedplumClientOptions.storage property

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;