Skip to main content

encode_set_header

Function encode_set_header 

Source
pub fn encode_set_header(out: &mut Vec<u8>, count: i64)
Expand description

~<count>\r\n — a set header. Follow with count sub-replies; the receiving client treats them as a set (dedup is its job; the wire doesn’t require it).

Used for SMEMBERS / SINTER / SUNION / SDIFF / SRANDMEMBER COUNT.