The entry point to creating new KV instances.

Constructors

Properties

Methods

Constructors

  • Creates an instance of the Kv that allows you to create and access KV stores. Note that if the argument is a NatsConnection, default JetStream Options are used. If you want to set some options, please provide a JetStreamClient instead.

    Parameters

    • nc: NatsConnection | JetStreamClient

    Returns Kvm

Properties

js: JetStreamClientImpl

Methods

  • Creates and opens the specified KV. If the KV already exists, it opens the existing KV.

    Parameters

    Returns Promise<KV>

  • Lists all available KVs

    Returns Lister<KvStatus>

  • Open to the specified KV. If the KV doesn't exist, this API will fail.

    Parameters

    Returns Promise<KV>