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; an expired entry is removed.

public Task<AIResponse?> GetAsync(string key, CancellationToken cancellationToken = default)

Parameters

key string
cancellationToken CancellationToken

Returns

Task<AIResponse>