Function redis_protocol::redis_keyslot[][src]

pub fn redis_keyslot(key: &str) -> u16

Map a Redis key to its cluster key slot.