Nebulex.Adapters.Redis.ClientSideCluster (Nebulex.Adapters.Redis v3.0.0-rc.1)

View Source

Client-side Cluster

Summary

Types

Proxy type to the adapter meta

Types

adapter_meta()

@type adapter_meta() :: Nebulex.Adapter.adapter_meta()

Proxy type to the adapter meta

node_entry()

@type node_entry() :: {node_name :: atom(), pool_size :: pos_integer()}

nodes_config()

@type nodes_config() :: [node_entry()]

Functions

command(map, command, opts, init_acc \\ nil, reducer \\ fn res, _ -> res end)

@spec command(
  Nebulex.Adapter.adapter_meta(),
  Redix.command(),
  keyword(),
  init_acc :: any(),
  reducer :: (any(), any() -> any())
) :: any()

fetch_conn(adapter_meta, key, opts)

@spec fetch_conn(adapter_meta(), {:"$hash_slot", any()} | any(), keyword()) ::
  {:ok, pid()} | {:error, Nebulex.Error.t()}

group_keys_by_hash_slot(enum, ring, type)

@spec group_keys_by_hash_slot(Enum.t(), atom(), atom()) :: map()

init(adapter_meta, opts)