Method GetEntryAsync
- Namespace
- NATS.Client.KeyValueStore
- Assembly
- NATS.Client.KeyValueStore.dll
GetEntryAsync<T>(string, ulong, INatsDeserialize<T>?, CancellationToken)
Get an entry from the bucket using the key
ValueTask<NatsKVEntry<T>> GetEntryAsync<T>(string key, ulong revision = 0, INatsDeserialize<T>? serializer = null, CancellationToken cancellationToken = default)
Parameters
keystringKey of the entry
revisionulongRevision to retrieve
serializerINatsDeserialize<T>Optional serialized to override the default
cancellationTokenCancellationTokenA CancellationToken used to cancel the API call.
Returns
- ValueTask<NatsKVEntry<T>>
The entry
Type Parameters
TSerialized value type
Exceptions
- NatsKVException
There was an error with metadata