Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v5.1.7) is shown here.
read_multi(*names)
public
Reads multiple values from the cache using a single call to the servers for
all keys. Options can be passed in the last argument.
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 95
def read_multi(*names)
options = names.extract_options!
options = merged_options(options)
keys_to_names = Hash[names.map { |name| [normalize_key(name, options), name] }]
raw_values = @data.get_multi(keys_to_names.keys)
values = {}
raw_values.each do |key, value|
entry = deserialize_entry(value)
values[keys_to_names[key]] = entry.value unless entry.expired?
end
values
end