Skip to main content

generate_cache_key

Function generate_cache_key 

Source
pub fn generate_cache_key(
    namespace: &str,
    function_name: &str,
    serialized_args: &[u8],
) -> Result<String, CachekitError>
Expand description

Generate a deterministic cache key by Blake2b-256 hashing the function name and serialized arguments, optionally prefixed with a namespace.