AzureStorageResponseCacheProvider Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IResponseCacheProvider that returns a AzureStorageResponseCache.
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.
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.