instance method
delete_multi
Ruby on Rails 7.1.6
Since v6.1.7.10Signature
delete_multi(names, options = nil)
Deletes multiple entries in the cache. Returns the number of deleted entries.
Options are passed to the underlying cache implementation.
Parameters
-
namesreq -
optionsopt = nil
Source
# File activesupport/lib/active_support/cache.rb, line 688
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 do
delete_multi_entries(names, **options)
end
end
Defined in activesupport/lib/active_support/cache.rb line 688
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store