UNPKG

ps2census

Version:

Client to connect to the PS2 Event Stream websocket.

15 lines (14 loc) 495 B
import { CacheContract } from '../concerns/cache.contract'; export declare class LocalCacheOptions { readonly maxEntries?: number; } export declare class LocalCache implements CacheContract { private readonly cache; private readonly maxEntries; constructor(options?: LocalCacheOptions); put(key: string, data: any): Promise<void>; fetch(key: string): Promise<any | null>; forget(key: string): Promise<void>; forgetAll(): Promise<void>; private pruneOldest; }