UNPKG

@cachemap/map

Version:
22 lines 923 B
import { type Store, type StoreInit } from '@cachemap/types'; import { type ConstructorOptions, type InitOptions, type Options } from '../types.cts'; export declare class MapStore implements Store { static init(options: InitOptions): Promise<MapStore>; readonly type = "map"; private _map; private readonly _maxHeapSize; private readonly _name; constructor(options: ConstructorOptions); clear(): Promise<void>; delete(key: string): Promise<boolean>; entries(keys?: string[]): Promise<[string, string][]>; get(key: string): Promise<string | undefined>; has(key: string): Promise<boolean>; import(entries: [string, string][]): Promise<void>; get maxHeapSize(): number; get name(): string; set(key: string, value: string): Promise<void>; size(): Promise<number>; } export declare const init: (options?: Options) => StoreInit; //# sourceMappingURL=index.d.cts.map