Nebulex.Adapters.Redis.Cluster (Nebulex.Adapters.Redis v3.0.0-rc.1)
View SourceRedis Cluster Manager
Summary
Types
Proxy type to the adapter meta
Types
@type adapter_meta() :: Nebulex.Adapter.adapter_meta()
Proxy type to the adapter meta
Functions
@spec command( adapter_meta(), Redix.command(), keyword(), init_acc :: any(), (any(), any() -> any()) ) :: any()
@spec del_status_key(atom()) :: :ok
@spec fetch_conn(adapter_meta(), {:"$hash_slot", any()} | any(), keyword()) :: {:ok, pid()} | {:error, Nebulex.Error.t()}
@spec group_keys_by_hash_slot( Enum.t(), Nebulex.Adapters.Redis.Cluster.Keyslot.t(), atom() ) :: map()
@spec hash_slot(any(), Nebulex.Adapters.Redis.Cluster.Keyslot.t()) :: {:"$hash_slot", non_neg_integer()}
@spec init( adapter_meta(), keyword() ) :: {Supervisor.child_spec(), adapter_meta()}
@spec with_retry(atom(), pos_integer() | :infinity, (-> any())) :: any()