instance method
delete_multi
Ruby on Rails 8.0.4
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 690
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
Defined in activesupport/lib/active_support/cache.rb line 690
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store