package
Version:
v0.0.0-...-9a52191
Opens a new window with list of versions in this module.
Published: Mar 10, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
groupcache-annotated
consistenthash
hash设置多个虚拟节点,通过统一的hash规则计算出key落在换上某个点上,
然后这个点按照顺时针寻找最近的节点

Documentation
¶
Package consistenthash provides an implementation of a ring hash.
Add adds some keys to the hash.
Get gets the closest item in the hash to the provided key.
IsEmpty returns true if there are no items available.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.