Documentation ¶
Overview ¶
Package consistent implements consistent hashing for cache nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashBucket ¶
HashBucket returns a bucket from [0,buckets). If you want to implement a retry, you can pass previousBuckets, which indicates buckets which must be avoided in the output. HashBucket will modify the previousBuckets slice by sorting it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.