Expand description
Disk-based cache storage backend
Implements Pingora’s Storage trait using the local filesystem. Each cached
response is stored as a pair of files (.meta + .body) distributed across
sharded subdirectories to keep per-directory inode counts manageable.
§Directory layout
<base_path>/
shard-00/
<2-char-hex-prefix>/
<combined-hex-hash>.meta
<combined-hex-hash>.body
tmp/
shard-01/
...Structs§
- Disk
Cache Storage - Disk-based cache storage backend implementing Pingora’s
Storagetrait. - Disk
HitHandler - Hit handler for disk cache lookups.
- Disk
Miss Handler - Miss handler for disk cache writes.
Functions§
- rebuild_
eviction_ state - Scan disk entries and register them with the eviction manager.