[READ-ONLY] a fast, modern browser for the npm registry
at main 8 lines 283 B view raw
1/** 2 * Generic cache adapter to allow using a local cache during development and redis in production 3 */ 4export interface CacheAdapter { 5 get<T>(key: string): Promise<T | undefined> 6 set<T>(key: string, value: T, ttl?: number): Promise<void> 7 delete(key: string): Promise<void> 8}