PdfHandleCacheStatsDto
Statistics about the in-memory open-document handle cache.
Backed by PdfHandleCache in the service layer. Avoids re-opening the
underlying PDF file via PDFium on every page request.
Maximum number of handles the cache will retain.
Possible values: >= 0
256Number of handles currently cached.
Possible values: >= 0
12Whether the handle cache is enabled.
trueentries object[]required
Per-entry detail for the admin UI.
Seconds since the handle was opened.
Possible values: >= 0
312Book ID for the cached document.
550e8400-e29b-41d4-a716-446655440000File path of the opened PDF.
/library/books/manual.pdfSeconds since the last render against this handle.
Possible values: >= 0
14Number of renders served from this handle.
Possible values: >= 0
27Cumulative evictions (capacity + manual).
Possible values: >= 0
5Cumulative cache hits (handle reused without re-opening).
Possible values: >= 0
4321Cumulative idle-TTL evictions performed by the sweeper.
Possible values: >= 0
3Idle TTL in seconds before a handle is evicted by the background sweeper.
Possible values: >= 0
900Cumulative cache misses (no entry on lookup).
Possible values: >= 0
87Cumulative PDFium opens performed by the cache.
Possible values: >= 0
87{
"capacity": 256,
"currentSize": 12,
"enabled": true,
"entries": [
{
"ageSeconds": 312,
"bookId": "550e8400-e29b-41d4-a716-446655440000",
"filePath": "/library/books/manual.pdf",
"idleSeconds": 14,
"renderCount": 27
}
],
"evictions": 5,
"hits": 4321,
"idleEvictions": 3,
"idleTtlSeconds": 900,
"misses": 87,
"opens": 87
}