ExRingRing.Application.UseCases.CreateRing (ex_ring_ring v0.1.0)

Copy Markdown

Use case for creating a new hash ring.

Summary

Functions

Creates a new hash ring with the given nodes and options.

Creates a ring from a list of keys.

Functions

call(nodes, opts \\ [])

Creates a new hash ring with the given nodes and options.

call_from_keys(keys, opts \\ [])

@spec call_from_keys(
  [term()],
  keyword()
) :: ExRingRing.Domain.Entities.Ring.t()

Creates a ring from a list of keys.