Amazon Vinyl
    Preparing search index...

    Interface KeyValuePersistence<T>

    An abstract persistence interface for an async key / value store.

    interface KeyValuePersistence<T> {
        clear(): Promise<void>;
        get(key: string): Promise<T | null>;
        remove(key: string): Promise<void>;
        set(key: string, value: T): Promise<void>;
    }

    Type Parameters

    • T

    Implemented by

    Index
    • Resolves to the value for the given key, or null if non-existent.

      Parameters

      • key: string

      Returns Promise<T | null>