Skip to content

Releases: jiangz222/consistent

v1.0.8

03 Jun 05:03
Compare
Choose a tag to compare

MemberReplicas

v1.0.7

02 Jun 10:38
Compare
Choose a tag to compare

Fix some bugs

v1.0.6

02 Jun 10:31
Compare
Choose a tag to compare

update go mod

v1.0.5

02 Jun 09:58
Compare
Choose a tag to compare
  • Update the config
  • Add SetWithReplicas
  • Add numberOfReplicas for every member

v1.0.4

24 May 07:20
Compare
Choose a tag to compare

Go mod

v.1.0.3

24 May 07:17
Compare
Choose a tag to compare

quick return in Add and Remove

v1.0.2

22 May 16:49
Compare
Choose a tag to compare
  • Support self define hash function
    Murmur3Hash make hashing more uniform
type Murmur3Hash struct{}

func (c Murmur3Hash) HashFunc(key string) uint32 {
	h := murmur3.New32()
	h.Write([]byte(key))
	return h.Sum32()
}

func main(){
	conf.Hasher = Murmur3Hash{}
	consistent = New(conf)
}

v1.0.1

22 May 15:21
Compare
Choose a tag to compare

Support config for UseFnv and NumberOfReplicas