package
0.0.0-20181115013041-b67df6e626f9
Repository: https://github.com/mediocregopher/radix.v2.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CRC16 returns checksum for a given set of bytes based on the crc algorithm defined for hashing redis keys in a cluster setup.
New will perform the following steps to initialize:
- Connect to the node given in the argument
- Use that node to call CLUSTER SLOTS.
NewWithOpts is the same as NewCluster, but with more fine-tuned configuration options.
Slot returns the cluster slot the given key will fall into, taking into account curly braces within the key as per the spec.
# Constants
NumSlots is the number of slots keys are sharded into in a redis cluster.
# Variables
ErrBadCmdNoKey is an error reply returned when no key is given to the Cmd method.
# Type aliases
DialFunc is a function which can be incorporated into Opts.