# DaprConfigStore API

Config store adapter backed by Dapr configuration components.

---
Canonical: /handbook/api/classes/_purista_dapr-sdk.DaprConfigStore/
Source: dapr-sdk/src/DaprConfigStore/DaprConfigStore.impl.ts
Format: Markdown for agents
---

Config store adapter backed by Dapr configuration components.

Package: `@purista/dapr-sdk`

## Signature

```typescript
class DaprConfigStore
```

## Members

### Constructors

- `new constructor(config?: { cacheTtl: number; clientConfig: DaprClientConfig; configStoreName: string; enableCache: boolean; enableGet: boolean; enableRemove: boolean; ... })` — Creates a Dapr-backed config store.

### Properties

- `cache: ConfigStoreCacheMap` — Optional local cache used by store implementations that opt in.
- `config: { cacheTtl: number; clientConfig: DaprClientConfig; configStoreName: string; enableCache: boolean; enableGet: boolean; enableRemove: boolean; ... }` — Store configuration including operation toggles and cache settings.
- `logger: Logger` — Child logger scoped to the store name.
- `name: string` — Store name used in logs and diagnostics.

### Methods

- `destroy(): Promise<void>` — Shutdown hook for store adapters.
- `getConfig<ConfigNames>(...configNames: ConfigNames): Promise<ObjectWithKeysFromStringArray<ConfigNames>>` — Returns the values for given config properties.
- `getConfigImpl<ConfigNames>(...configNames: ConfigNames): Promise<ObjectWithKeysFromStringArray<ConfigNames>>` — Reads one or more configuration values from the configured Dapr component.
- `removeConfig(configName: string): Promise<void>` — Removes the config item given by config name.
- `removeConfigImpl(_configName: string): Promise<void>` — Dapr configuration removal is not implemented by this adapter.
- `setConfig(configName: string, configValue: unknown): Promise<void>` — Sets a config value.
- `setConfigImpl(_configName: string, _configValue: unknown): Promise<void>` — Dapr configuration mutation is not implemented by this adapter.
