dawanda/loveos-rack-session-redis

Name: loveos-rack-session-redis

Owner: DaWanda Engineering Team

Description: null

Created: 2014-06-26 15:08:20.0

Updated: 2017-03-22 09:46:04.0

Pushed: 2018-02-15 16:21:26.0

Homepage: null

Size: 47

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Rack::Session::Redis

Rack::Session::Redis::SessionService provides simple cookie based session management. Session data is stored in Redis and the corresponding session key is maintained in the cookie. You may treat SessionService as you would Rack::Session::Pool.

You can use all options supported by Rack::Session::Abstract::ID.

Installation

Add this line to your application's Gemfile:

gem 'rack-session-redis'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rack-session-redis
Usage
Rack::Session::Redis::SessionService, 
key: 'my_session_key',
domain: 'example.com',
path: '/',
expire_after: 3600,
redis_options: {host: 'redis-master.example.com', port: 6379, db: 13},
key_prefix: 'my:session:'

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.