consistent

package module
v0.0.0-...-b1a0320 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 5 Imported by: 0

README

consistent

go consistent hashing package

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL