Method: ActiveSupport::Cache::Store#delete_multi

Defined in:
lib/active_support/cache.rb

#delete_multi(names, options = nil) ⇒ Object

Deletes multiple entries in the cache. Returns the number of deleted entries.

Options are passed to the underlying cache implementation.



699
700
701
702
703
704
705
706
707
708
# File 'lib/active_support/cache.rb', line 699

def delete_multi(names, options = nil)
  return 0 if names.empty?

  options = merged_options(options)
  names.map! { |key| normalize_key(key, options) }

  instrument_multi(:delete_multi, names, options) do
    delete_multi_entries(names, **options)
  end
end