Method: ActionDispatch::Session::CacheStore#initialize

Defined in:
actionpack/lib/action_dispatch/middleware/session/cache_store.rb

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

Returns a new instance of CacheStore.



23
24
25
26
27
# File 'actionpack/lib/action_dispatch/middleware/session/cache_store.rb', line 23

def initialize(app, options = {})
  @cache = options[:cache] || Rails.cache
  options[:expire_after] ||= @cache.options[:expires_in]
  super
end