Class: ActionController::Session::RedisSessionStore
- Inherits:
-
AbstractStore
- Object
- AbstractStore
- ActionController::Session::RedisSessionStore
- Defined in:
- lib/redis_store/session/redis_session_store.rb
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ RedisSessionStore
constructor
A new instance of RedisSessionStore.
Constructor Details
#initialize(app, options = {}) ⇒ RedisSessionStore
Returns a new instance of RedisSessionStore.
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/redis_store/session/redis_session_store.rb', line 6 def initialize(app, = {}) [:expire_after] ||= [:expires] super @options = { :namespace => 'rack:session', :key_prefix => '' }.update() @data = [:cache] || ::RedisStore::MarshalledClient.new(::RedisStore::Config.new()) end |