Method GetStoreAsync
- Namespace
- NATS.Client.KeyValueStore
- Assembly
- NATS.Client.KeyValueStore.dll
GetStoreAsync(string, CancellationToken)
Get a Key Value Store
ValueTask<INatsKVStore> GetStoreAsync(string bucket, CancellationToken cancellationToken = default)
Parameters
bucket
stringName of the bucjet
cancellationToken
CancellationTokenA CancellationToken used to cancel the API call.
Returns
- ValueTask<INatsKVStore>
Key Value Store
Exceptions
- NatsKVException
There was an issue with configuration
- NatsJSException
There was an issue retrieving the response.
- NatsJSApiException
Server responded with an error.