AzureStorageResponseCacheProvider Class

Definition

An IEvaluationResponseCacheProvider that returns an IDistributedCache that can cache AI responses for a particular ScenarioRun under an Azure Storage container.

public ref class AzureStorageResponseCacheProvider sealed : Microsoft::Extensions::AI::Evaluation::Reporting::IEvaluationResponseCacheProvider
public sealed class AzureStorageResponseCacheProvider : Microsoft.Extensions.AI.Evaluation.Reporting.IEvaluationResponseCacheProvider
type AzureStorageResponseCacheProvider = class
    interface IEvaluationResponseCacheProvider
Public NotInheritable Class AzureStorageResponseCacheProvider
Implements IEvaluationResponseCacheProvider
Inheritance
AzureStorageResponseCacheProvider
Implements

Constructors

AzureStorageResponseCacheProvider(DataLakeDirectoryClient, Nullable<TimeSpan>)

An IEvaluationResponseCacheProvider that returns an IDistributedCache that can cache AI responses for a particular ScenarioRun under an Azure Storage container.

Methods

DeleteExpiredCacheEntriesAsync(CancellationToken)

Deletes expired cache entries for all ScenarioRuns.

GetCacheAsync(String, String, CancellationToken)

Returns an IDistributedCache that caches all the AI responses associated with the ScenarioRun with the supplied scenarioName and iterationName.

ResetAsync(CancellationToken)

Deletes cached AI responses for all ScenarioRuns.

Applies to