Open sandboxFocus

Method SetItemAsync

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

A CancellationToken.

Returns
Type Description
Task

A Task.