instance method
write_multi_entries
Ruby on Rails 7.0.10
Since v5.2.8.1 PrivateSignature
write_multi_entries(entries, expires_in: nil, **options)
Nonstandard store provider API to write multiple values at once.
Parameters
-
entriesreq -
expires_inkey = nil -
optionskeyrest
Source
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 415
def write_multi_entries(entries, expires_in: nil, **options)
if entries.any?
if mset_capable? && expires_in.nil?
failsafe :write_multi_entries do
payload = serialize_entries(entries, **options)
redis.with do |c|
c.mapped_mset(payload)
end
end
else
super
end
end
end
Defined in activesupport/lib/active_support/cache/redis_cache_store.rb line 415
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::RedisCacheStore