package consistenthash
import "github.com/go-redis/redis/internal/consistenthash"
Package consistenthash provides an implementation of a ring hash.
Index ¶
Types ¶
type Hash ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func New ¶
func (*Map) Add ¶
Adds some keys to the hash.
func (*Map) Get ¶
Gets the closest item in the hash to the provided key.
func (*Map) IsEmpty ¶
Returns true if there are no items available.
Source Files ¶
- Version
- v6.8.3+incompatible
- Published
- Jan 30, 2018
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 3 minutes ago –
Tools for package owners.