UNPKG

pnpm

Version:

A fast implementation of npm install

9 lines (8 loc) 220 B
export declare type CacheOptions = { path: string; ttl: number; }; export default function createCache(opts: CacheOptions): { set: <T>(key: string, value: T) => any; get: (id: string) => Promise<any>; };