IEvaluationResponseCacheProvider.GetCacheAsync Methode

Definition

Gibt einen IDistributedCache Wert zurück, der alle KI-Antworten zwischenspeichert, die mit dem ScenarioRun angegebenen scenarioName und iterationName.

public System.Threading.Tasks.ValueTask<Microsoft.Extensions.Caching.Distributed.IDistributedCache> GetCacheAsync(string scenarioName, string iterationName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCacheAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.Extensions.Caching.Distributed.IDistributedCache>
Public Function GetCacheAsync (scenarioName As String, iterationName As String, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of IDistributedCache)

Parameter

scenarioName
String

Die ScenarioName.

iterationName
String

Die IterationName.

cancellationToken
CancellationToken

Ein CancellationToken Vorgang, der den Vorgang abbrechen kann.

Gibt zurück

Eine IDistributedCache Zwischenspeicherung aller KI-Antworten, die mit dem ScenarioRun bereitgestellten scenarioName und iterationName.

Gilt für: