Table of Contents

Class CacheAccessedEventArgs

Namespace
LMKit.Retrieval.Events
Assembly
LM-Kit.NET.dll

Provides data for the CacheAccessed event.

public sealed class CacheAccessedEventArgs : EventArgs
Inheritance
CacheAccessedEventArgs
Inherited Members

Examples

pdfChat.CacheAccessed += (sender, e) =>
{
    string status = e.IsHit ? "hit" : "miss";
    Console.WriteLine($"Cache {status} for \"{e.DocumentName}\" at {e.DataSourceIdentifier}");
};

Properties

DataSourceIdentifier

Gets the cache file path.

DocumentName

Gets the name of the document.

IsHit

Gets whether the cache was hit (true) or missed (false).

Share