mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-19 15:30:17 +00:00
23 lines
592 B
Markdown
23 lines
592 B
Markdown
![]() |
# Jump Consistent Hash
|
||
|
|
||
|
[](https://travis-ci.org/renstrom/go-jump-consistent-hash)
|
||
|
[](https://godoc.org/github.com/renstrom/go-jump-consistent-hash)
|
||
|
|
||
|
Go implementation of the jump consistent hash algorithm[1] by John Lamping and Eric Veach.
|
||
|
|
||
|
[1] http://arxiv.org/pdf/1406.2294v1.pdf
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```go
|
||
|
import jump "github.com/renstrom/go-jump-consistent-hash"
|
||
|
|
||
|
func main() {
|
||
|
jump.Hash(256, 1024) // 520
|
||
|
}
|
||
|
```
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT
|