class method
self.new
Ruby on Rails 5.2.8.1
Since v3.0.20Signature
self.new(options = nil)
Creates 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 183
def initialize(options = nil)
@options = options ? options.dup : {}
end
Defined in activesupport/lib/active_support/cache.rb line 183
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store