package valkey

  1. Overview
  2. Docs

Module Router.TargetSource

Sourcetype t =
  1. | Random
    (*

    Pick one eligible live node. Cluster routers honor the accompanying Read_from.t: Primary chooses primaries, replica policies choose replicas when available.

    *)
  2. | By_slot of int
  3. | By_node of string
  4. | By_channel of string

Where to send a single-reply command.

Fan-out (every primary / every node) is a separate concern: it returns one reply per node, not one reply total. See Fan_target and exec_multi.