effect-io-ai

Package: effect
Module: HashRing

HashRing.make

Creates an empty HashRing.

When to use

Use to create an empty weighted consistent-hashing ring with the default or custom virtual-point density.

Details

baseWeight controls how many virtual points are added for a node with weight 1; it defaults to 128 and is clamped to at least 1.

See

Signature

declare const make: <A extends PrimaryKey.PrimaryKey>(options?: { readonly baseWeight?: number | undefined; }) => HashRing<A>

Source

Since v3.19.0