Skip to main content

setValue

client.kvStore.setValue(data: SetKvValueRequest): Promise<KvValue>

Sets a key-value pair in the store.

Creates or overwrites a value at the specified key within a namespace and instance. The value can be any JSON-serializable data.

Parameters

ParameterTypeRequiredDescription
dataSetKvValueRequestYesThe set request including instance ID, namespace, key, and value

Returns

Promise<KvValue> — A promise that resolves to the stored

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.kvStore.setValue(/* SetKvValueRequest */);
console.log(result);