pub fn cache_budget_bytes() -> Result<u64, MemoryError>Expand description
The configured cache budget in bytes: CACHE_BUDGET_ENV megabytes if it is
set, otherwise DEFAULT_CACHE_BUDGET_BYTES.
A value that cannot be read is an error, not a fallback. Silently ignoring it would run the default under a name that says otherwise, and an operator who asked for a bound has to be told the ask did not land.
ยงErrors
Returns MemoryError::InvalidBudget if the variable is set to something
that is not a whole number of megabytes, or to a number of megabytes that does
not fit in bytes.