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 
- NatsKVContext(INatsJSContext, NatsKVOpts)
- Create a new Key Value Store context 
Properties
- JetStreamContext
- Provides access to the JetStream context associated with the Key-Value Store operations. 
- Opts
- Configuration options for the Nats Key-Value Store operations used within the Key-Value Store context. 
Methods
- CreateOrUpdateStoreAsync(NatsKVConfig, CancellationToken)
- Creates a new Key Value Store if it doesn't exist or update if the store already exists. 
- 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.