UNPKG

machinomy

Version:

Micropayments powered by Ethereum

8 lines (7 loc) 230 B
export default class MemoryCache<A> { private readonly ttl; private readonly entries; constructor(ttl: number); get(channelId: string): Promise<A | undefined>; set(channelId: string, body: A): Promise<void>; }