instance method
read_multi_entries
Ruby on Rails 6.1.7.10
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 162
def read_multi_entries(names, **options)
keys_to_names = names.index_by { |name| normalize_key(name, options) }
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 162
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemCacheStore