Skip to content

Commit

Permalink
Merge pull request #36 from danielmbarlow/patch-1
Browse files Browse the repository at this point in the history
Add documentation for options
  • Loading branch information
tubbo authored Aug 22, 2018
2 parents 0d7e695 + 966096d commit fad94f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ require 'rack'
require 'rack/session/redis'

use Rack::Session::Redis

# Alternatively you can specify options to use:
use Rack::Session::Redis,
:redis_server => "redis://redis:6379/0",
:expires_in => 3600 # Seconds. If you are using ActiveSupport you can use 1.hour
```

## Development
Expand Down

0 comments on commit fad94f8

Please sign in to comment.