Method RemoveAsync
RemoveAsync(IShortLivedStore, string, string, CancellationToken)
Removes a state, if it exists.
Declaration
public static ValueTask RemoveAsync(this IShortLivedStore store, string keyPrefix, string id, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IShortLivedStore | store | The store. |
| string | keyPrefix | The start of the key, as the state was added with. |
| string | id | The ID of the state within the prefix. |
| CancellationToken | cancellationToken | A token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| ValueTask |