Updates the cache with new data.
update(prompt: string, llmKey: string, returnValue: Generation[]): Promise<void>| Name | Type | Description |
|---|---|---|
prompt* | string | The prompt for update. |
llmKey* | string | The LLM key used to construct the cache key. |
returnValue* | Generation[] |