Interface IndexedStorageConnector

Interface with external index system.

interface IndexedStorageConnector {
    deleteMany(keys): Promise<void>;
    getMany(keys): Promise<IndexedStorageConnectorEntry[]>;
    list(keyPrefix): AsyncGenerator<string[], any, unknown>;
    put(key, payload?): Promise<void>;
}

Methods

  • Delete entries in bulk.

    Parameters

    • keys: string[]

    Returns Promise<void>

  • List entries having keyPrefix;

    Parameters

    • keyPrefix: string

    Returns AsyncGenerator<string[], any, unknown>

  • Put payload under key.

    Parameters

    Returns Promise<void>