Skip to content

jiangz222/consistent

This branch is 11 commits ahead of stathat/consistent:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1f76189 · Jun 15, 2021

History

43 Commits
Sep 21, 2012
Jun 15, 2021
Jun 3, 2021
Jun 2, 2021
May 24, 2021
Jun 2, 2021

Repository files navigation

consistent

Consistent hash package for Go.

Installation

go get stathat.com/c/consistent

Examples

Look at the godoc.

Status

This package was extracted from production code powering StatHat, so clearly we feel that it is production-ready, but it should still be considered experimental as other uses of it could reveal issues we aren't experiencing.

Contact us

We'd love to hear from you if you are using consistent. Get in touch: @stathat or contact us here.

About

Written by Patrick Crosby at StatHat. Twitter: @stathat

  • Support custom hash function in Config to New instance
  • Support default number of replicas in Config to New instance
  • Support number of replicas for every single member(both in Add and Remove)
	x := New(newConfig())
	x.Add("def", 40)
	x.Remove("def")
  • Add function: SetWithReplicas(),MemberReplicas()

About

Consistent hash package for Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%