method
new
v4.2.9 -
Show latest stable
- Class:
ActiveSupport::Cache::MemoryStore
new(options = nil)public
No documentation available.
# File activesupport/lib/active_support/cache/memory_store.rb, line 19
def initialize(options = nil)
options ||= {}
super(options)
@data = {}
@key_access = {}
@max_size = options[:size] || 32.megabytes
@max_prune_time = options[:max_prune_time] || 2
@cache_size = 0
@monitor = Monitor.new
@pruning = false
end