IOutputCacheStore.GetAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the cached response for the given key, if it exists.
If no cached response exists for the given key, null
is returned.
public System.Threading.Tasks.ValueTask<byte[]?> GetAsync (string key, System.Threading.CancellationToken cancellationToken);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<byte[]>
Public Function GetAsync (key As String, cancellationToken As CancellationToken) As ValueTask(Of Byte())
Parameters
- key
- String
The cache key to look up.
- cancellationToken
- CancellationToken
Indicates that the operation should be cancelled.
Returns
The response cache entry if it exists; otherwise null
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for