package
Version:
v0.8.9
Opens a new window with list of versions in this module.
Published: Feb 27, 2025
License: MIT, Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package consistenthash provides an implementation of a ring hash.
type Map[T any] struct {
}
Add adds some keys to the hash.
Get gets the closest item in the hash to the provided key.
IsEmpty returns true if there are no items available.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.