Method GetAsync
- Namespace
- IntentSharp.Resilience
- Assembly
- IntentSharp.dll
GetAsync(string, CancellationToken)
Returns the response stored under key, or null when there is none or it has expired.
Task<AIResponse?> GetAsync(string key, CancellationToken cancellationToken = default)
Parameters
keystringAn opaque key the client computes from the provider name and the request content.
cancellationTokenCancellationTokenCancels the lookup.
Returns
- Task<AIResponse>