Multi-threaded Redis store for rack ID-based session (with maximum Redis connection for connection pool)
Add this line to your application's Gemfile:
gem 'rack-redis-session-store'
And then execute:
$ bundle install
For rails, replace this in your session_store initializer
IMuaSam::Application.config.session_store :redis_store, host: "redis.host", port: 1234, db: '1234', key: 'session_id', max_connections: 16
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request