Skip to main content

DEFAULT_RESOLVE_CACHE_BYTE_BUDGET

Constant DEFAULT_RESOLVE_CACHE_BYTE_BUDGET 

Source
pub const DEFAULT_RESOLVE_CACHE_BYTE_BUDGET: usize = _; // 268_435_456usize
Expand description

Summed string-length budget for cached entries (bytes).

The entry capacity alone is unbounded in bytes — the registry accepts strings up to 1 MiB, so 240k entries could legally be hundreds of GiB. Insertion evicts least-recently-used entries until the summed string length fits this budget.