package hashtag

import "github.com/go-redis/redis/internal/hashtag"

Index

Constants

const SlotNumber = 16384

Functions

func Key

func Key(key string) string

func Slot

func Slot(key string) int

hashSlot returns a consistent slot number between 0 and 16383 for any given string key.

Source Files

hashtag.go

Version
v4.2.2+incompatible
Published
Oct 14, 2016
Platform
darwin/amd64
Imports
2 packages
Last checked
2 hours ago

Tools for package owners.