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
v6.2.4+incompatible
Published
Apr 22, 2017
Platform
js/wasm
Imports
2 packages
Last checked
5 hours ago

Tools for package owners.