UNPKG

@mysten/sui

Version:

Sui TypeScript API(Work in Progress)

12 lines (11 loc) 377 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>; clear(prefix?: string[]): void; scope(prefix: string | string[]): ClientCache; }