Documentation ¶
Overview ¶
Package maglev implements maglev consistent hashing.
Index ¶
Constants ¶
View Source
const ( SmallM = 65537 BigM = 655373 )
Prime numbers of varying scale
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table represents a Maglev hashing table.
func (*Table) Lookup ¶
Lookup looks up a key in the table and returns the associated backend, or false if there are no backends.
func (*Table) Reconfig ¶
Reconfig reconfigures the table with the given backend weight configuration.
Click to show internal directories.
Click to hide internal directories.