Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConsistentHash

Hierarchy

  • ConsistentHash

Index

Constructors

constructor

Properties

algorithm

algorithm: string

keys

keys: object = []

Type declaration

  • [key: string]: any

nodes

nodes: Array<RpcServerInfo> = []

opts

opts: any

replicas

replicas: number

ring

ring: object

Type declaration

  • [key: string]: any

station

station: any

Methods

addNode

getNode

  • getNode(key: string): any

getNodePosition

  • getNodePosition(result: string): number

removeNode