phoenix_pubsub_redis:用于Phoenix框架的Redis PubSub适配器

时间:2021-05-15 07:31:56
【文件属性】:
文件名称:phoenix_pubsub_redis:用于Phoenix框架的Redis PubSub适配器
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-15 07:31:56
Elixir 凤凰城PubSub.Redis 用于Phoenix框架的Redis PubSub适配器 有关更多信息,请参阅。 用法 要将Redis用作PubSub适配器,只需将其添加到您的部门和应用程序的Supervisor树中: # mix.exs defp deps do [{ :phoenix_pubsub_redis , " ~> 3.0.0 " }], end # application.ex children = [ # ..., { Phoenix . PubSub , adapter: Phoenix . PubSub . Redis , host: " 192.168.1.100 " , node_name: System . get_env ( " NODE " )} 配置选项 选项 描述 默认 :name 注册PubSub进程所需的名称,即:
【文件预览】:
phoenix_pubsub_redis-master
----mix.exs(1KB)
----test()
--------test_helper.exs(44B)
--------phoenix_pubsub_redis_test.exs(209B)
----mix.lock(2KB)
----.gitignore(39B)
----CHANGELOG.md(71B)
----lib()
--------phoenix_pubsub_redis()
----README.md(3KB)

网友评论