README ¶ consistent go consistent hashing package Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Ketama func (k *Ketama[T]) Add(hashTag string, vn int, value T) func (k *Ketama[T]) Build() func (k *Ketama[T]) Get(key string) (T, bool) func (k *Ketama[T]) Get32(key uint32) (T, bool) func (k *Ketama[T]) Remove(value T) func (k *Ketama[T]) Reset(capacity int) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Ketama ¶ type Ketama[T comparable] struct { // contains filtered or unexported fields } func (*Ketama[T]) Add ¶ func (k *Ketama[T]) Add(hashTag string, vn int, value T) func (*Ketama[T]) Build ¶ func (k *Ketama[T]) Build() func (*Ketama[T]) Get ¶ func (k *Ketama[T]) Get(key string) (T, bool) func (*Ketama[T]) Get32 ¶ func (k *Ketama[T]) Get32(key uint32) (T, bool) func (*Ketama[T]) Remove ¶ func (k *Ketama[T]) Remove(value T) func (*Ketama[T]) Reset ¶ func (k *Ketama[T]) Reset(capacity int) Source Files ¶ View all Source files ketama.go Click to show internal directories. Click to hide internal directories.