Class: ActionDispatch::Session::MemCacheStore

Inherits:
Rack::Session::Dalli
  • Object
show all
Includes:
Compatibility, SessionObject, StaleSessionCheck
Defined in:
lib/action_dispatch/middleware/session/mem_cache_store.rb

Overview

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

Methods included from SessionObject

#loaded_session?, #prepare_session

Methods included from StaleSessionCheck

#extract_session_id, #load_session, #stale_session_check!

Methods included from Compatibility

#generate_sid

Constructor Details

#initialize(app, options = {}) ⇒ MemCacheStore

Returns a new instance of MemCacheStore.



20
21
22
23
# File 'lib/action_dispatch/middleware/session/mem_cache_store.rb', line 20

def initialize(app, options = {})
  options[:expire_after] ||= options[:expires]
  super
end