pub fn key_slot(key: &[u8], slot_count: usize) -> u64 {
        if slot_count == 1 {
            return 0;
        }
        let h = KeyVal::get_hash_code(key);
        KeyVal::gen_consistent_slot(h, slot_count)
    }
///
/// get the slot based on total slot count
get the slot based on total slot count
get the slot based on total slot count
pub fn key_slot(key: &[u8], slot_count: usize) -> u64 {
        if slot_count == 1 {
            return 0;
        }
        let h = KeyVal::get_hash_code(key);
        KeyVal::gen_consistent_slot(h, slot_count)
    }
pub fn key_slot ( key : & [ u8 ] , slot_count : usize ) -> u64 { if slot_count == 1 { return 0 ; } let h = KeyVal :: get_hash_code ( key ) ; KeyVal :: gen_consistent_slot ( h , slot_count ) }
get the slot based on total slot count
get the slot based on total slot count
key
&[u8]
slot_count
usize