SetItemAsync(string, CacheItem, CancellationToken)
Asynchronously sets a cache item.
Declaration
public Task 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 |
---|---|
Task | A Task. |