UNPKG

magicbell

Version:
13 lines (12 loc) 330 B
import { RequestArgs } from './types.js'; export declare class Cache { #private; constructor(options?: { ttl: number; }); getRequestKey(args: Omit<RequestArgs, 'path' | 'params'> & { url: URL; }): string; get(key: string): Promise<any>; set(key: string, promise: Promise<any>): void; }