GoLang实现一致性哈希算法

直接上代码,windows7,go1.7下直接运行。node package main import ( "fmt" "sort" "strconv" "hash/crc32" "sync" ) const DEFAULT_REPLICAS = 160 type HashRing []uint32 func (c HashRing) Len() in
相关文章
相关标签/搜索