pub(crate) async fn load<T: Send + Sync + 'static>(
cache: Option<&MetadataCache>,
identity: String,
weight: impl FnOnce(&T) -> usize,
loader: impl Future<Output = Result<T>>,
) -> Result<Arc<T>>Expand description
Loads only validated immutable structures. Identities include the generation path, object length, and the complete reference/codec context used to validate the value. Oversized entries bypass admission; disabled caches perform the same validation.