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.
Task SetAsync(string key, AIResponse response, TimeSpan ttl, CancellationToken cancellationToken = default)
Parameters
keystringresponseAIResponsettlTimeSpancancellationTokenCancellationToken
Returns
- Task