compare_stream_ids

Function compare_stream_ids 

Source
pub fn compare_stream_ids(a: &str, b: &str) -> Ordering
Expand description

Compare two Redis stream IDs.

Stream IDs are formatted as {timestamp}-{sequence} (e.g., “1234567890123-0”). This function compares them numerically, not lexicographically.

Returns Ordering::Less if a < b, Equal if a == b, Greater if a > b.