class method
self.new
Ruby on Rails 3.2.22.5
Since v3.2.22.5Signature
self.new(app, options = {})
Create a new store. The cache to use can be passed in the :cache option. If it is not specified, Rails.cache will be used.
Parameters
-
appreq -
optionsopt = {}
Source
# File actionpack/lib/action_dispatch/middleware/session/cache_store.rb, line 11
def initialize(app, options = {})
@cache = options[:cache] || Rails.cache
options[:expire_after] ||= @cache.options[:expires_in]
super
end
Defined in actionpack/lib/action_dispatch/middleware/session/cache_store.rb line 11
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Session::CacheStore