Documentation
Table of Contents

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

key string

An opaque key the client computes from the provider name and the request content.

cancellationToken CancellationToken

Cancels the lookup.

Returns

Task<AIResponse>