Method SetItemAsync
SetItemAsync(String, CacheItem, CancellationToken)
Asynchronously sets a cache item.
Declaration
public Task SetItemAsync([Required] string key, [Required] CacheItem item, CancellationToken cancellationToken = null)
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. |