Поделиться через


AzureStorageResponseCacheProvider Constructor

Definition

public AzureStorageResponseCacheProvider(Azure.Storage.Files.DataLake.DataLakeDirectoryClient client, TimeSpan? timeToLiveForCacheEntries = default);
new Microsoft.Extensions.AI.Evaluation.Reporting.Storage.AzureStorageResponseCacheProvider : Azure.Storage.Files.DataLake.DataLakeDirectoryClient * Nullable<TimeSpan> -> Microsoft.Extensions.AI.Evaluation.Reporting.Storage.AzureStorageResponseCacheProvider
Public Sub New (client As DataLakeDirectoryClient, Optional timeToLiveForCacheEntries As Nullable(Of TimeSpan) = Nothing)

Parameters

client
DataLakeDirectoryClient

A DataLakeDirectoryClient with access to an Azure Storage container under which the cached AI responses should be stored.

timeToLiveForCacheEntries
Nullable<TimeSpan>

An optional TimeSpan that specifies the maximum amount of time that cached AI responses should survive in the cache before they are considered expired and evicted.

Applies to