Skip to main content

store_compiled

Function store_compiled 

Source
pub fn store_compiled<K: StoreKey, V: StoreValue>(
    store: &mut Store<K, V>,
    key: K,
    value: V,
) -> bool
Expand description

Stores a freshly compiled artifact, logging rather than failing, and says whether the store took it.

A refused write is routine, not exceptional: another process sharing the environment may have written the key first, or the backing store may have declined it. The artifact was just compiled either way, so the whole cost is compiling it again next run.