Function pingora_cache::key::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).