Registry / utility / lithammer-go-jump-consistent-hash

lithammer-go-jump-consistent-hash

JSON →
library1.0.2gogounverified

Implements the jump consistent hash algorithm for fast, minimal-memory consistent hashing.

go get github.com/lithammer/go-jump-consistent-hash
INSTALL
IMPORT
SIG · LITHAMMER-GO-JUMP-
L
lithammer-go-jump-consistent-hash
utilitygov1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jump
github.com/lithammer/go-jump-consistent-hash

Hashes a key into a bucket number using jump consistent hash.

package main import ( "fmt" "github.com/lithammer/go-jump-consistent-hash" ) func main() { h := jump.Hash(256, 4) // hash key 256 into 4 buckets fmt.Println(h) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
lithammer-go-jump-consistent-hash — go get lithammer-go-jump-consistent-hash · libregistry