Skip to main content

set_graph_cache_default

Function set_graph_cache_default 

Source
pub fn set_graph_cache_default(on: bool)
Expand description

Set the process-wide default of the graph cache for every store opened AFTER this call (an explicit ENV_GRAPH_CACHE still wins). For an embedder that learns its role at runtime and cannot set the environment — edition 2024 makes set_var unsafe, and gunnar forbids unsafe — such as gunnar’s twin, which holds packs and serves no reads.