instance method
read_multi_entries
Ruby on Rails 6.0.6
Since v5.2.8.1 PrivateSignature
read_multi_entries(names, **options)
Reads multiple entries from the cache implementation.
Parameters
-
namesreq -
optionskeyrest
Source
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 156
def read_multi_entries(names, **options)
keys_to_names = Hash[names.map { |name| [normalize_key(name, options), name] }]
raw_values = @data.with { |c| c.get_multi(keys_to_names.keys) }
values = {}
raw_values.each do |key, value|
entry = deserialize_entry(value)
unless entry.expired? || entry.mismatched?(normalize_version(keys_to_names[key], options))
values[keys_to_names[key]] = entry.value
end
end
values
end
Defined in activesupport/lib/active_support/cache/mem_cache_store.rb line 156
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemCacheStore