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, = {}) @cache = [:cache] || Rails.cache [:expire_after] ||= @cache.[:expires_in] super end |