A wrapper around Redix that allows you to connect to a Redis cluster.
- Add redix_cluster to your list of dependencies in
mix.exs
:
def deps do
[{:redix_cluster_remastered, "~> 1.0.0"}]
end
- Ensure redix_cluster is started before your application:
def application do
[applications: [:redix_cluster_remastered]]
end
config :redix_cluster_remastered,
cluster_nodes: [
%{host: "localhost", port: 6379}
],
pool_size: 5,
pool_max_overflow: 0