CachingBackend.GetItemAsync Method
GetItemAsync(string, bool, CancellationToken)
Asynchronously gets a cache item given its key.
Declaration
public ValueTask<CacheItem?> GetItemAsync(string key, bool includeDependencies = true, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | key | The cache item. |
bool | includeDependencies |
|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
ValueTask<CacheItem> | A Task evaluating to a CacheItem, or evaluating to |