MCPcopy Create free account
hub / github.com/Effect-TS/effect / HashRing.ts

File HashRing.ts

packages/effect/src/HashRing.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * Assigns string inputs to nodes with weighted consistent hashing.
3 *
4 * A hash ring minimizes remapping when nodes are added, removed, or reweighted.

Callers

nothing calls this directly

Calls 9

isHashRingFunction · 0.85
addNodesToRingFunction · 0.85
pushMethod · 0.80
filterMethod · 0.80
getMethod · 0.65
addMethod · 0.65
setMethod · 0.65
valueMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected