addKnowledge
codebolt.dbmemory.addKnowledge(key: string, value: any): Promise<MemorySetResponse>
Adds a key-value pair to the in-memory database. Supports storing various data types including strings, numbers, objects, and arrays.
Parameters
key(string): The unique key under which to store the value. Supports namespaced keys (e.g., 'user:123', 'config:theme').value(any): The value to be stored. Can be string, number, boolean, object, array, null, or undefined.
Returns
Promise<MemorySetResponse>: A promise that resolves with aMemorySetResponseobject containing the response type and operation metadata.