UNPKG

@tutkli/jikan-ts

Version:

Node.js wrapper for the Jikan API with built-in typings.

12 lines (11 loc) 310 B
export interface CacheOptions { /** TTL in milliseconds. Default: 5 minutes */ ttl: number; } export declare class ResponseCache { private cache; private ttl; constructor(options?: Partial<CacheOptions>); get<T>(key: string): T | undefined; set(key: string, data: unknown): void; }