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: [name: MyApp.PubSub,
           adapter: Phoenix.PubSub.Redis,
           host: "192.168.1.100"]

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

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

finally, add :poolboy to your applications:

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

Options

Source

Summary

start_link(name, opts)

Functions

start_link(name, opts)
Source