## MedplumKeyValueClient.set() method [​](/content/docs/sdk/core.medplumkeyvalueclient.set#medplumkeyvalueclientset-method "Direct link to MedplumKeyValueClient.set(/index.html) method")

Sets the value for the given key in the keyvalue store.

**Signature:**

```typescript
set(key: string, value: string): Promise<void>;
```

## Parameters [​](/content/docs/sdk/core.medplumkeyvalueclient.set#parameters "Direct link to Parameters"/index.html)

| Parameter | Type   | Description                       |
| --------- | ------ | --------------------------------- |
| key       | string | The key to set the value for.   |
| value     | string | The value to set.               |

**Returns:**

Promise<void>

- [MedplumKeyValueClient.set() method](/content/docs/sdk/core.medplumkeyvalueclient.set#medplumkeyvalueclientset-method/index.html)
- [Parameters](/content/docs/sdk/core.medplumkeyvalueclient.set#parameters/index.html)
