instance method
read_multi
Ruby on Rails 6.0.6
Since v5.2.8.1Signature
read_multi(*names)
Cache Store API implementation.
Read multiple values at once. Returns a hash of requested keys -> fetched values.
Parameters
-
namesrest
Source
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 205
def read_multi(*names)
if mget_capable?
instrument(:read_multi, names, options) do |payload|
read_multi_mget(*names).tap do |results|
payload[:hits] = results.keys
end
end
else
super
end
end
Defined in activesupport/lib/active_support/cache/redis_cache_store.rb line 205
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::RedisCacheStore