**a wrapper for redix to support cluster mode of redis
-
Add redix_cluster to your list of dependencies in
mix.exs
:elixir def deps do [{:redix_cluster, "~> 0.0.2"}] end
-
Ensure redix_cluster is started before your application:
def application do [applications: [:redix_cluster]] end
```elixir
iex -S mix
iex> h RedixCluster.command
iex> h RedixCluster.pipeline
iex> h RedixCluster.transaction
```
```elixir
config :redix_cluster,
cluster_nodes: [%{host: "127.0.0.1", port: 7000},
%{host: "127.0.0.1", port: 7001},
%{host: "127.0.0.1", port: 7002}
],
# poolboy
pool_size: 5,
pool_max_overflow: 0,
# redix connection_opts
socket_opts: [],
backoff_initial: 2000,
backoff_max: 2000
```
it's never slow down the speed of commands even redis is not on cluster
```elixir
MIX_ENV=test mix espec
```
```elixir
MIX_ENV=bench mix bench
```