Skip to main content

interop_key

Function interop_key 

Source
pub fn interop_key(
    namespace: &str,
    operation: &str,
    args: &[InteropValue],
) -> Result<String, CachekitError>
Expand description

Generate an interop/v1 cache key: {namespace}:{operation}:{args_hash}.

args_hash is Blake2b-256 (32-byte digest, unkeyed, lowercase hex) over canonical_args of the flat argument array. The maximum possible key length is 194 characters, so the auto-mode truncation rule never applies.

§Errors