package hashtag

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

Index

Functions

func Key

func Key(key string) string

func RandomSlot

func RandomSlot() int

func Slot

func Slot(key string) int

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

Source Files

hashtag.go

Version
v8.11.5 (latest)
Published
Mar 17, 2022
Platform
linux/amd64
Imports
2 packages
Last checked
1 week ago

Tools for package owners.