Module util

Module util 

Source
Expand description

Various client utility functions.

Constants§

NONE
A convenience constant for None values used as generic arguments.

Functions§

f64_to_string
Convert an f64 to a string, supporting “+inf” and “-inf”.
group_by_hash_slot
Group the provided arguments by their cluster hash slot.
redis_keyslot
Map a key to the corresponding cluster key slot.
static_bytes
Create a Bytes from static bytes without copying.
static_str
Create a Str from a static str slice without copying.
string_to_f64
Convert a string to an f64, supporting “+inf” and “-inf”.