Skip to main content

Module cache_ring

Module cache_ring 

Source
Expand description

Zero-heap circular ring buffer for DNS and SDN Q42 records.

Maintains a fast, deterministic cache of recent DNS resolution quins without performing any heap allocations (Vec/String/Box).

Provides explicit TTL-based pruning, clock-based pruning, and zero-heap archival extraction into caller-supplied storage buffers.

Fully conforms to QualiaDB Rule 0-A (zero heap in hot paths) and Rule 0-B.

Structs§

DnsCacheRing
Zero-allocation ring buffer storing NQuin records.

Constants§

DEFAULT_DNS_CACHE_CAPACITY
Default capacity for the stack-resident DNS ring buffer.