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; an expired entry is removed.
public Task<AIResponse?> GetAsync(string key, CancellationToken cancellationToken = default)
Parameters
keystringcancellationTokenCancellationToken
Returns
- Task<AIResponse>