Skip to main content

core.medplumclientoptions.cachetime

Home > @medplum/core > MedplumClientOptions > cacheTime

MedplumClientOptions.cacheTime property

The length of time in milliseconds to cache resources.

Default value is 60000 (60 seconds).

Cache time of zero disables all caching.

For any individual request, the cache behavior can be overridden by setting the cache property on request options.

See: https://developer.mozilla.org/en-US/docs/Web/API/Request/cache

Signature:

cacheTime?: number;