method
write_multi_entries
v5.2.3 -
Show latest stable
- Class:
ActiveSupport::Cache::RedisCacheStore::LocalCacheWithRaw
write_multi_entries(entries, options)private
No documentation available.
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 91
def write_multi_entries(entries, options)
if options[:raw] && local_cache
raw_entries = entries.map do |key, entry|
raw_entry = Entry.new(serialize_entry(entry, raw: true))
raw_entry.expires_at = entry.expires_at
end.to_h
super(raw_entries, options)
else
super
end
end