Table of Contents

Class NatsKVContext

Namespace
NATS.Client.KeyValueStore
Assembly
NATS.Client.KeyValueStore.dll

Key Value Store context

public class NatsKVContext : INatsKVContext
Inheritance
NatsKVContext
Implements
Inherited Members

Constructors

NatsKVContext(INatsJSContext)

Create a new Key Value Store context

Properties

JetStreamContext

Provides access to the JetStream context associated with the Key-Value Store operations.

Methods

CreateStoreAsync(NatsKVConfig, CancellationToken)

Create a new Key Value Store or get an existing one

CreateStoreAsync(string, CancellationToken)

Create a new Key Value Store or get an existing one

DeleteStoreAsync(string, CancellationToken)

Delete a Key Value Store

GetBucketNamesAsync(CancellationToken)

Get a list of bucket names

GetStatusesAsync(CancellationToken)

Gets the status for all buckets

GetStoreAsync(string, CancellationToken)

Get a Key Value Store

UpdateStoreAsync(NatsKVConfig, CancellationToken)

Update a key value store configuration. Storage type cannot change.