Module fred::util

source ·
Expand description

Various client utility functions.

Constants§

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

Functions§

  • Convert an f64 to a redis string, supporting “+inf” and “-inf”.
  • Group the provided arguments by their cluster hash slot.
  • Map a key to the corresponding cluster key slot.
  • Convert a redis string to an f64, supporting “+inf” and “-inf”.
  • Calculate the SHA1 hash output as a hex string. This is provided for clients that use the Lua interface to manage their own script caches.
  • Create a Bytes from static bytes without copying.
  • Create a Str from a static str slice without copying.