Classes · @purista/dapr-sdk

DaprConfigStore

Config store adapter backed by Dapr configuration components.

Signature

DaprConfigStore.ts typescript
class DaprConfigStore

Constructors

1 entry

constructor

Constructor

Source
constructor.ts typescript
new constructor(config?: { cacheTtl: number; clientConfig: DaprClientConfig; configStoreName: string; enableCache: boolean; enableGet: boolean; enableRemove: boolean; ... })

Creates a Dapr-backed config store.

Properties

4 entries

cache

Property

cache.ts typescript
cache: ConfigStoreCacheMap

Optional local cache used by store implementations that opt in.

config

Property

config.ts typescript
config: { cacheTtl: number; clientConfig: DaprClientConfig; configStoreName: string; enableCache: boolean; enableGet: boolean; enableRemove: boolean; ... }

Store configuration including operation toggles and cache settings.

logger

Property

logger.ts typescript
logger: Logger

Child logger scoped to the store name.

name

Property

name.ts typescript
name: string

Store name used in logs and diagnostics.

Methods

7 entries

destroy

Method

destroy.ts typescript
destroy(): Promise<void>

Shutdown hook for store adapters.

getConfig

Method

getConfig.ts typescript
getConfig<ConfigNames>(...configNames: ConfigNames): Promise<ObjectWithKeysFromStringArray<ConfigNames>>

Returns the values for given config properties.

getConfigImpl

Method

Source
getConfigImpl.ts typescript
getConfigImpl<ConfigNames>(...configNames: ConfigNames): Promise<ObjectWithKeysFromStringArray<ConfigNames>>

Reads one or more configuration values from the configured Dapr component.

removeConfig

Method

removeConfig.ts typescript
removeConfig(configName: string): Promise<void>

Removes the config item given by config name.

removeConfigImpl

Method

Source
removeConfigImpl.ts typescript
removeConfigImpl(_configName: string): Promise<void>

Dapr configuration removal is not implemented by this adapter.

setConfig

Method

setConfig.ts typescript
setConfig(configName: string, configValue: unknown): Promise<void>

Sets a config value.

setConfigImpl

Method

Source
setConfigImpl.ts typescript
setConfigImpl(_configName: string, _configValue: unknown): Promise<void>

Dapr configuration mutation is not implemented by this adapter.