Documentation
¶
Overview ¶
Package reader provides a bounded, coalescing cache of immutable decoded chunks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
type Config ¶
Config controls capacity, load concurrency and sequential read ahead. Callers schedule sequential prefetch; the cache enforces capacity and preserves a load slot for foreground demand.
type Stats ¶
type Stats struct {
CapacityBytes int64 `json:"capacity_bytes"`
UsedBytes int64 `json:"used_bytes"`
ReservedBytes int64 `json:"reserved_bytes"`
InFlight int `json:"in_flight"`
Workers int `json:"workers"`
Ahead int `json:"ahead"`
Hits int64 `json:"hits"`
Misses int64 `json:"misses"`
Coalesced int64 `json:"coalesced"`
Prefetches int64 `json:"prefetches"`
PrefetchHits int64 `json:"prefetch_hits"`
Evictions int64 `json:"evictions"`
Errors int64 `json:"errors"`
}
Stats describes decoded data, separately from the NVMe raw and encoded caches. Prefetch failures are retried normally on a subsequent read.