Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
isHashRing
Function · 0.85
addNodesToRing
Function · 0.85
push
Method · 0.80
filter
Method · 0.80
get
Method · 0.65
add
Method · 0.65
set
Method · 0.65
value
Method · 0.45
has
Method · 0.45
Tested by
no test coverage detected