Method PutAsync
- Namespace
- NATS.Client.KeyValueStore
- Assembly
- NATS.Client.KeyValueStore.dll
PutAsync<T>(string, T, INatsSerialize<T>?, CancellationToken)
Put a value into the bucket using the key
ValueTask<ulong> PutAsync<T>(string key, T value, INatsSerialize<T>? serializer = null, CancellationToken cancellationToken = default)Parameters
- keystring
- Key of the entry 
- valueT
- Value of the entry 
- serializerINatsSerialize<T>
- Serializer to use for the message type. 
- cancellationTokenCancellationToken
- A CancellationToken used to cancel the API call. 
Returns
Type Parameters
- T
- Serialized value type