Skip to main content

decode

Function decode 

Source
pub fn decode(opaque: &HandleOpaque) -> Result<DecodedHandle, HandleDecodeError>
Expand description

Decode a HandleOpaque into a DecodedHandle. Accepts both v2 buffers (leading V2_MAGIC) and legacy v1 Valkey buffers (leading V1_VERSION_TAG); the v1 path returns tag = BackendTag::Valkey.