core.medplumclient.getcached | Medplum
MedplumClient.getCached() method
Returns a cached resource if it is available.
Signature:
getCached<RT extends ResourceType>(resourceType: RT, id: string): WithId<ExtractResource<RT>> | undefined;
Parameters [](/content/docs/sdk/core.medplumclient.getcached#parameters "Direct link to Parameters"/index.html)
| Parameter | Type | Description |
|---|---|---|
| resourceType | RT | The FHIR resource type. |
| id | string | The FHIR resource ID. |
Returns:
WithId <ExtractResource
The resource if it is available in the cache; undefined otherwise.