Method GetAsync
GetAsync(string, CancellationToken)
Gets the value of a key, or returns null if the key has no value. The value of a counter is its count as decimal text.
Declaration
public ValueTask<string?> GetAsync(string key, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key. |
| CancellationToken | cancellationToken | A token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| ValueTask<string> |