class method
self.new
Ruby on Rails 4.2.9
Since v3.0.20Signature
self.new(options = nil)
Create a new cache. The options will be passed to any write method calls except for :namespace which can be used to set the global namespace for the cache.
Parameters
-
optionsopt = nil
Source
# File activesupport/lib/active_support/cache.rb, line 164
def initialize(options = nil)
@options = options ? options.dup : {}
end
Defined in activesupport/lib/active_support/cache.rb line 164
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store