Expand description
Tiered LRU cache for Microscope Memory queries.
Two tiers:
- Tier 1 (hot): Exact query → JSON response cache
- Tier 2 (warm): Block index → text cache (avoids repeat mmap reads)
Thread-safe via Mutex. Cache is invalidated on store/rebuild.
Structs§
- Cache
Stats - Cache statistics for the /stats endpoint.
- Query
Cache - Thread-safe two-tier query cache.