Class BaseCache<T>Abstract
Methods
Abstract
lookup
- lookup(prompt, llmKey): Promise<null | T>
-
Parameters
-
prompt: string
-
llmKey: string
Returns Promise<null | T>
Abstract
update
- update(prompt, llmKey, value): Promise<void>
-
Parameters
-
prompt: string
-
llmKey: string
-
value: T
Returns Promise<void>
Base class for all caches. All caches should extend this class.