Class: ActionDispatch::Session::MemCacheStore

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

Instance Method Summary collapse

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.



10
11
12
13
14
# File 'lib/action_dispatch/middleware/session/mem_cache_store.rb', line 10

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