pingora_cache::key

Function str2hex

Source
pub fn str2hex(s: &str) -> Option<HashBinary>
Expand description

Decode the hex str into HashBinary.

Return None when the decode fails or the input is not exact 32 (to decode to 16 bytes).