redix_pubsub_fastlane v0.3.2 Redix.PubSub.Fastlane.Supervisor View Source
Fastlane Supervisor process. To use simply add it to your Application supervisors:
supervisor(Redix.PubSub.Fastlane.Supervisor, [MyApp.PubSub.Redis, [host: "127.0.0.1",
port: 6379,
pool_size: 5]]),
Or start by hands:
{:ok, _} = Redix.PubSub.Fastlane.Supervisor.start_link(MyApp.PubSub.Redis)
Options
:name
- The required name to register the PubSub processes, ie:MyApp.PubSub.Redis
:host
- The redis-server host IP, defaults"127.0.0.1"
:port
- The redis-server port, defaults6379
:database
- The redis-server database id, defaults""
:password
- The redis-server password, defaults""
:pool_size
- The size of hte redis connection pool. Defaults5
:fastlane
- The default fastlane module. Defaultsnil
:decoder
- The decoder for your incoming payloads. Defaultsnil
Link to this section Summary
Link to this section Functions
Link to this function
start_link(name, opts \\ [])
View Source
start_link(binary | atom, Keyword.t) :: GenServer.on_start