Method UpdateAsync
- Namespace
- NATS.Client.KeyValueStore
- Assembly
- NATS.Client.KeyValueStore.dll
UpdateAsync<T>(string, T, ulong, INatsSerialize<T>?, CancellationToken)
Update an entry in the bucket only if last update revision matches
ValueTask<ulong> UpdateAsync<T>(string key, T value, ulong revision, INatsSerialize<T>? serializer = null, CancellationToken cancellationToken = default)
Parameters
key
stringKey of the entry
value
TValue of the entry
revision
ulongLast revision number to match
serializer
INatsSerialize<T>Serializer to use for the message type.
cancellationToken
CancellationTokenA CancellationToken used to cancel the API call.
Returns
Type Parameters
T
Serialized value type