Registry / utility / c-consistent

c-consistent

JSON →
library1.0.0gogounverified

A Go implementation of consistent hashing for distributing requests across a changing set of servers.

go get stathat.com/c/consistent
INSTALL
IMPORT
SIG · C-CONSISTENT
C
c-consistent
utilitygov1.0.0
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.

consistent
✓ stathat.com/c/consistent

Create a consistent hash ring and get a server for a key

package main import ( "fmt" "stathat.com/c/consistent" ) func main() { c := consistent.New() c.Add("cacheA") fmt.Println(c.Get("mykey")) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
c-consistent — go get c-consistent · libregistry