Skip to content

zhvala/goconsistent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goconsistent

Consistent hash package for Go, fork from consistent.

Installation

go get github.com/zhvala/goconsistent

Document

Look at the godoc.

Example

c := consistent.New()
c.Add("keyA", "valueA")
c.Add("keyB", "valueB")
c.Add("keyC", "valueC")
elem, err := c.Get("raw")
fmt.Println(elem.Key, elem.Value, elem.Replica)

About

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages