package
0.9.5
Repository: https://github.com/joomcode/redispipe.git
Documentation: pkg.go.dev

# Functions

BatchKey returns first key from a batch that is targeted to common slot.
BatchSlot returns slot common for all requests in batch (if there is such common slot).
CRC16 returns checksum for a given set of bytes based on the crc algorithm defined for hashing redis keys in a cluster setup.
No description provided by the author
No description provided by the author
ParseClusterNodes parses result of CLUSTER NODES command.
ParseMasterOnly parses content of MasterOnlyKey.
ParseSlotsInfo parses result of CLUSTER SLOTS command.
ReqSlot returns slot number targeted by this command.
RequestMasterOnly fetches content of key as a int set, and returns it as a map.
Resolve just resolves hostname:port to ipaddr:port.
SetMasterOnly sets MasterOnlyKey to contain specified slots.
Slot returns the cluster slot the given key will fall into, taking into account curly braces within the key as per the spec.
UnsetMasterOnly unsets slots from MasterOnlyKey.

# Constants

MasterOnlyKey is a key of redis's SET which contains slots number.
NumSlots is the number of slots keys are sharded into in a redis cluster.
SlotImporting indicates slot is importing into this instance.
SlotMigrating indicates slot is migrating from this instance.

# Structs

InstanceInfo represents line of CLUSTER NODES result.
SlotMigration represents one migrating slot.
SlotsRange represents slice of slots.

# Type aliases

InstanceInfos represents CLUSTER NODES result.
SlotMoving is a flag about direction of slot migration.