Phoenix.PubSub.Redis

The Supervisor for the Redis Phoenix.PubSub adapter

To use Redis as your PubSub adapter, simply add it to your Endpoint’s config:

config :my_app, MyApp.Endpiont,
  ...
  pubsub: [adapter: Phoenix.PubSub.Redis,
           options: [host: "192.168.1.100"]

next, add :eredis, and :poolboy to your deps:

defp deps do
  [{:eredis, github: "wooga/eredis"},
   {:poolboy, "~> 1.4.2"},
  ...]
end

finally, add :poolboy to your applications:

def application do
  [mod: {MyApp, []},
   applications: [..., :phoenix, :poolboy],
   ...]
end
Source

Summary

start_link(name, opts)

Functions

start_link(name, opts)
Source