PhoenixSessionRedis

Build Statushex.pm versionMIT License

PhoenixSessionRedis provide redis pool and Plug.Session.REDIS. Depends on eredis, poolboy and plug.

It is assumed that application is created Phoenix Framework and run multi(or one) web server with one redis server for session. But not limited Phoenix Framework.

Installation

If available in Hex, the package can be installed as:

  1. Add phoenix_session_redis to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:phoenix_session_redis, "~> 0.1.2"}]
end
```
  1. Ensure phoenix_session_redis is started before your application:
```elixir
def application do
  [applications: [:phoenix_session_redis]]
end
```

Usage

Add below example to your Phoenix Framework project.

Licence

See LICENSE.

Contribution

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request