Property IsHit
IsHit
Gets whether the cache was hit (true) or missed (false).
public bool IsHit { get; }
Property Value
Examples
pdfChat.CacheAccessed += (sender, e) =>
{
if (e.IsHit)
{
Console.WriteLine($"Loaded \"{e.DocumentName}\" from cache.");
}
else
{
Console.WriteLine($"Cache miss for \"{e.DocumentName}\". Importing document...");
}
};