Marmot-TS
    Preparing search index...

    Interface GenericKeyValueStore<T>

    A generic interface for a key-value store

    interface GenericKeyValueStore<T> {
        clear(): Promise<void>;
        getItem(key: string): Promise<T | null>;
        keys(): Promise<string[]>;
        removeItem(key: string): Promise<void>;
        setItem(key: string, value: T): Promise<T>;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Utilities