PdfCacheStatsDto
Combined PDF cache statistics.
Exposes both the on-disk rendered-page cache and the in-memory open-document handle cache in a single payload.
handles objectrequired
In-memory open-document handle cache (PDFium).
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
87pages objectrequired
Disk-backed rendered-page cache (JPEGs).
Number of unique books with cached pages
Possible values: >= 0
45Path to the cache directory
/data/cacheWhether the PDF page cache is enabled
trueAge of the oldest cached file in days (if any files exist)
Possible values: >= 0
15Total number of cached page files
Possible values: >= 0
1500Total size of cache in bytes
Possible values: >= 0
157286400Human-readable total size (e.g., "150.0 MB")
150.0 MB{
"handles": {
"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
},
"pages": {
"bookCount": 45,
"cacheDir": "/data/cache",
"cacheEnabled": true,
"oldestFileAgeDays": 15,
"totalFiles": 1500,
"totalSizeBytes": 157286400,
"totalSizeHuman": "150.0 MB"
}
}