GetCacheStats
Document management, Performance, Concurrency
Description
Returns a consistent snapshot of the cache configuration and its cumulative traffic counters
The record reports the number of retained cache windows and pending fetches, the configured byte budget and the bytes currently cached, the coalesce window, and the hit, miss, eviction, source-read, repeated-read and coalescing counters
Syntax
Delphi
Function TByteRangeStream.GetCacheStats: TPDFByteRangeCacheStats;Return values
| TPDFByteRangeCacheStats | A record with the fields WindowCount, PendingRequests, CacheLimitBytes, CachedBytes, CoalesceWindowMS, Hits, Misses, Evictions, SourceReads, SourceBytes, RepeatedReads, CoalescedRequests and CoalescedSourceReads |
|---|
Remarks
Counters accumulate from construction until ClearCache is called with ResetStatistics enabled
The call reads no source bytes and changes no cache state, so it can be polled from a monitoring thread
See also
TByteRangeStreamReadAt, GetRangeSourceCacheInfo, SetRangeSourceCacheLimit, ClearRangeSourceCache