magicbell
Version:
MagicBell API wrapper
13 lines (12 loc) • 330 B
TypeScript
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;
}