UNPKG

wowok

Version:

Wowok Blockchain TypeScript API

13 lines (12 loc) 440 B
export interface ClientCacheOptions { prefix?: string[]; cache?: Map<string, unknown>; } export declare class ClientCache { #private; constructor({ prefix, cache }?: ClientCacheOptions); read<T>(key: [string, ...string[]], load: () => T | Promise<T>): T | Promise<T>; readSync<T>(key: [string, ...string[]], load: () => T): T; clear(prefix?: string[]): void; scope(prefix: string | string[]): ClientCache; }