AzureStorageResponseCache 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 IDistributedCache implementation that stores cached AI responses for a particular ScenarioRun under an Azure Storage container.
public AzureStorageResponseCache(Azure.Storage.Files.DataLake.DataLakeDirectoryClient client, string scenarioName, string iterationName, TimeSpan? timeToLiveForCacheEntries = default);
new Microsoft.Extensions.AI.Evaluation.Reporting.Storage.AzureStorageResponseCache : Azure.Storage.Files.DataLake.DataLakeDirectoryClient * string * string * Nullable<TimeSpan> -> Microsoft.Extensions.AI.Evaluation.Reporting.Storage.AzureStorageResponseCache
Public Sub New (client As DataLakeDirectoryClient, scenarioName As String, iterationName As String, 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.
- scenarioName
- String
The ScenarioName for the returned AzureStorageResponseCache instance.
- iterationName
- String
The IterationName for the returned AzureStorageResponseCache instance.
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.