instance method
write_multi_entries
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
write_multi_entries(entries, **options)
No documentation comment.
Parameters
-
entriesreq -
optionskeyrest
Source
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 238
def write_multi_entries(entries, **options)
return if entries.empty?
entries = entries.transform_values { |entry| serialize_entry(entry, **options) }
expires_in = options[:expires_in].to_i
if options[:race_condition_ttl] && expires_in > 0 && !options[:raw]
# Set the memcache expire a few minutes in the future to support race condition ttls on read
expires_in += 5.minutes
end
rescue_error_with(nil) do
@data.with { |c| c.set_multi(entries, expires_in, options) }
end
end
Defined in activesupport/lib/active_support/cache/mem_cache_store.rb line 238
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemCacheStore