pub fn redis_keyslot(key: &[u8]) -> u16
Expand description
Map a key to the corresponding cluster key slot.
ⓘ
$ redis-cli cluster keyslot "8xjx7vWrfPq54mKfFD3Y1CcjjofpnAcQ"
(integer) 5458
assert_eq!(redis_keyslot(b"8xjx7vWrfPq54mKfFD3Y1CcjjofpnAcQ"), 5458);