Class: ActionDispatch::Session::MemCacheStore
- Inherits:
-
Rack::Session::Dalli
- Object
- Rack::Session::Dalli
- ActionDispatch::Session::MemCacheStore
- Includes:
- Compatibility, SessionObject, StaleSessionCheck
- Defined in:
- lib/action_dispatch/middleware/session/mem_cache_store.rb
Overview
# Action Dispatch Session MemCacheStore
A session store that uses MemCache to implement storage.
#### Options
-
‘expire_after` - The length of time a session will be stored before automatically expiring.
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ MemCacheStore
constructor
A new instance of MemCacheStore.
Methods included from SessionObject
#commit_session, #loaded_session?, #prepare_session
Methods included from StaleSessionCheck
#extract_session_id, #load_session, #stale_session_check!
Methods included from Compatibility
Constructor Details
#initialize(app, options = {}) ⇒ MemCacheStore
Returns a new instance of MemCacheStore.
28 29 30 31 |
# File 'lib/action_dispatch/middleware/session/mem_cache_store.rb', line 28 def initialize(app, = {}) [:expire_after] ||= [:expires] super end |