DiskBasedResponseCacheProvider Class
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 IEvaluationResponseCacheProvider that returns an IDistributedCache that can cache
AI responses for a particular ScenarioRun under the specified storageRootPath
on
disk.
public ref class DiskBasedResponseCacheProvider sealed : Microsoft::Extensions::AI::Evaluation::Reporting::IEvaluationResponseCacheProvider
public sealed class DiskBasedResponseCacheProvider : Microsoft.Extensions.AI.Evaluation.Reporting.IEvaluationResponseCacheProvider
type DiskBasedResponseCacheProvider = class
interface IEvaluationResponseCacheProvider
Public NotInheritable Class DiskBasedResponseCacheProvider
Implements IEvaluationResponseCacheProvider
- Inheritance
-
DiskBasedResponseCacheProvider
- Implements
Constructors
DiskBasedResponseCacheProvider(String, Nullable<TimeSpan>) |
An IEvaluationResponseCacheProvider that returns an IDistributedCache that can cache
AI responses for a particular ScenarioRun under the specified |
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 |
ResetAsync(CancellationToken) |
Deletes cached AI responses for all ScenarioRuns. |