SetItemAsync(string, CacheItem, CancellationToken)
Asynchronously sets a cache item.
Declaration
public ValueTask SetItemAsync(string key, CacheItem item, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the cache item. |
CacheItem | item | The cache item. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
ValueTask | A Task. |