Class: ActionDispatch::Session::RedisStore
- Inherits:
-
Rack::Session::Redis
- Object
- Rack::Session::Redis
- ActionDispatch::Session::RedisStore
- Includes:
- Compatibility, SessionObject, StaleSessionCheck
- Defined in:
- lib/action_dispatch/middleware/session/redis_store.rb
Overview
Session storage in Redis, using Redis::Rack
as a basis.
Instance Method Summary collapse
- #generate_sid ⇒ Object
-
#initialize(app, options = {}) ⇒ RedisStore
constructor
A new instance of RedisStore.
Constructor Details
#initialize(app, options = {}) ⇒ RedisStore
Returns a new instance of RedisStore.
15 16 17 18 19 |
# File 'lib/action_dispatch/middleware/session/redis_store.rb', line 15 def initialize(app, = {}) = .dup [:redis_server] ||= [:servers] super end |
Instance Method Details
#generate_sid ⇒ Object
21 22 23 |
# File 'lib/action_dispatch/middleware/session/redis_store.rb', line 21 def generate_sid Rack::Session::SessionId.new(super) end |