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

    Function getKeyValue

    • Reads one value from a KV bucket as a string.

      Parameters

      • nats: NatsService

        Connected service from connect.

      • bucket: string

        KV bucket name, e.g. avenabox.

      • key: string

        Key to read, e.g. <site>.<box>.<source>.config.

      Returns Promise<string>

      The value decoded as UTF-8 text. When the key has no entry or its value is empty, resolves to the literal string "Key value does not exist" rather than rejecting, so callers must check for it before parsing.

      If nats is not set, the bucket cannot be opened, or the read fails.