Documentation
Table of Contents

Method SetAsync

Namespace
IntentSharp.Resilience
Assembly
IntentSharp.dll

SetAsync(string, AIResponse, TimeSpan, CancellationToken)

Stores response under key for ttl, replacing any entry with the same key.

public Task SetAsync(string key, AIResponse response, TimeSpan ttl, CancellationToken cancellationToken = default)

Parameters

key string
response AIResponse
ttl TimeSpan
cancellationToken CancellationToken

Returns

Task