Avena Webapp API - v0.0.1
    Preparing search index...

    Function getKeyValues

    • Reads several values from a KV bucket, keeping up to concurrency reads in flight.

      Each read costs one round trip, so reading N keys one after another costs N round trips; this costs about N / concurrency. Each key is read as by getKeyValue, and one failed read does not stop the others.

      Parameters

      • nats: NatsService

        Connected service from connect.

      • bucket: string

        KV bucket name, e.g. avenabox.

      • keys: readonly string[]

        Keys to read.

      • concurrency: number = KV_READ_CONCURRENCY

        Most reads in flight at once. Default KV_READ_CONCURRENCY.

      Returns Promise<PromiseSettledResult<string>[]>

      One result per key, in the order of keys: the value (see getKeyValue, including its "Key value does not exist" text) or the error.