THPDFCacheAdmissionStatistics Record
Combines the active admission policy of a cache layer with live entry, byte, hit, miss, admission, rejection, eviction and frequency-admission counters
Declaration
THPDFCacheAdmissionStatistics= record
Enabled: boolean;
AdaptiveAdmission: boolean;
MaxEntries: Integer;
MaxTotalBytes: Int64;
MaxEntryBytes: Int64;
EntryCount: Integer;
CurrentBytes: Int64;
HitCount: Int64;
MissCount: Int64;
AdmissionCount: Int64;
RejectionCount: Int64;
EvictionCount: Int64;
FrequencyAdmissionCount: Int64;
FrequencyRejectionCount: Int64;
FrequencyAgingCount: Int64;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
Enabled / AdaptiveAdmission | Snapshot of the layer's THPDFCacheAdmissionPolicy enablement and adaptive mode |
MaxEntries / MaxTotalBytes / MaxEntryBytes | Snapshot of the configured entry, total-byte, and per-entry limits |
EntryCount / CurrentBytes | Entries currently cached and bytes they occupy |
HitCount / MissCount | Lifetime cache lookups served from the layer versus lookups that missed |
AdmissionCount / RejectionCount | Items admitted into the cache versus items refused by the admission policy |
EvictionCount | Items evicted after admission, for example when limits have been lowered |
FrequencyAdmissionCount / FrequencyRejectionCount | Admission decisions driven by the frequency-based adaptive policy: items admitted as they were reused versus items refused as cold |
FrequencyAgingCount | Frequency-counter aging passes applied to the adaptive admission state |
Usage notes
- Request the record per
THPDFCacheLayerKindwithTHotPDF.GetCacheAdmissionStatistics; the counters are cumulative for the loaded document session - The first five fields mirror the stored
THPDFCacheAdmissionPolicy, so one record suffices for capacity planning and for hit-ratio reporting - Compare
RejectionCountwithFrequencyRejectionCountto see how much of the refusal pressure comes from adaptive admission