Method CreateOrUpdateStoreAsync
- Namespace
- NATS.Client.KeyValueStore
- Assembly
- NATS.Client.KeyValueStore.dll
CreateOrUpdateStoreAsync(NatsKVConfig, CancellationToken)
Creates a new Key Value Store if it doesn't exist or update if the store already exists.
ValueTask<INatsKVStore> CreateOrUpdateStoreAsync(NatsKVConfig config, CancellationToken cancellationToken = default)
Parameters
config
NatsKVConfigKey Value Store configuration
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.