File size: 286 Bytes
05c5ed5
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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>>;
}