better-chatbot / src /lib /cache /cache.interface.ts
Bot
Initial commit for HF Spaces
05c5ed5
Raw
History Blame Contribute Delete
286 Bytes
export interface Cache {
get<T>(key: string): Promise<T | undefined>;
set(key: string, value: unknown, ttlMs?: number): Promise<void>;
has(key: string): Promise<boolean>;
delete(key: string): Promise<void>;
clear(): Promise<void>;
getAll(): Promise<Map<string, unknown>>;
}