redis: github.com/go-redis/redis/internal/hashtag Index | Files

package hashtag

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

Index

Package Files

hashtag.go

func Key Uses

func Key(key string) string

func RandomSlot Uses

func RandomSlot() int

func Slot Uses

func Slot(key string) int

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

Package hashtag imports 2 packages (graph) and is imported by 10 packages. Updated 2019-04-26. Refresh now. Tools for package owners.