# ConfigStoreBaseClass API

Base class for config store adapters.

---
Canonical: /handbook/api/classes/_purista_core.ConfigStoreBaseClass/
Source: core/ConfigStore/ConfigStoreBaseClass.impl.ts
Format: Markdown for agents
---

Base class for config store adapters.

Package: `@purista/core`

## Signature

```typescript
class ConfigStoreBaseClass<ConfigStoreConfigType>
```

## Members

### Constructors

- `new constructor<ConfigStoreConfigType>(name: string, config: mapped)`

### Properties

- `cache: ConfigStoreCacheMap` — Optional local cache used by store implementations that opt in.
- `config: mapped` — 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>>` — This method must be overwritten by actual store implementation.
- `removeConfig(configName: string): Promise<void>` — Removes the config item given by config name.
- `removeConfigImpl(configName: string): Promise<void>` — This method must be overwritten by actual store implementation.
- `setConfig(configName: string, configValue: unknown): Promise<void>` — Sets a config value.
- `setConfigImpl(_configName: string, _configValue: unknown): Promise<void>` — This method must be overwritten by actual store implementation.
