Skip to main content

insert

Function insert 

Source
pub fn insert(
    table: &mut CacheTable,
    scope: u64,
    source_generation: Generation,
    policy_generation: Generation,
    abi_tag: u64,
    value: StrongDigest,
) -> Result<StrongDigest, QdnfError>
Expand description

Insert value under the canonical key. Same key+value is idempotent.

QdnfError::Conflict if the key is occupied with a different value. QdnfError::Capacity at sixteen distinct keys.