UNPKG

@helia/verified-fetch

Version:

A fetch-like API for obtaining verified & trustless IPFS content on the web

15 lines 388 B
/** * Time Aware Least Recent Used Cache * * @see https://arxiv.org/pdf/1801.00390 */ export declare class TLRU<T> { private readonly lru; constructor(maxSize: number); get(key: string): T | undefined; set(key: string, value: T, ttlMs: number): void; has(key: string): boolean; remove(key: string): void; clear(): void; } //# sourceMappingURL=tlru.d.ts.map