import { IActiveCache } from './Interface'; /** * This pool is to keep track of in-memory cache used for LLM and Embeddings */ export declare class CachePool { private redisClient; activeLLMCache: IActiveCache; activeEmbeddingCache: IActiveCache; constructor(); /** * Add to the llm cache pool * @param {string} chatflowid * @param {Map} value */ addLLMCache(chatflowid: string, value: Map): Promise; /** * Add to the embedding cache pool * @param {string} chatflowid * @param {Map} value */ addEmbeddingCache(chatflowid: string, value: Map): Promise; /** * Get item from llm cache pool * @param {string} chatflowid */ getLLMCache(chatflowid: string): Promise | undefined>; /** * Get item from embedding cache pool * @param {string} chatflowid */ getEmbeddingCache(chatflowid: string): Promise | undefined>; /** * Close Redis connection if applicable */ close(): Promise; } export declare function getInstance(): CachePool;