Documentation
    Preparing search index...

    Interface SimpleKvStore

    interface SimpleKvStore {
        get(key: string): null | string;
        remove(key: string): void;
        set(key: string, value: string): void;
    }

    Implemented by

    Index

    Methods

    Methods

    • Retrieves the value associated with the given key.

      Parameters

      • key: string

        The key to retrieve the value for.

      Returns null | string

      The value associated with the key, or null if not found.

    • Removes the value associated with the given key.

      Parameters

      • key: string

        The key to remove the value for.

      Returns void

    • Sets the value for the given key.

      Parameters

      • key: string

        The key to set the value for.

      • value: string

        The value to set.

      Returns void