instance method delete_multi

Ruby on Rails 6.1.7.10

Since v6.1.7.10

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

delete_multi(names, options = nil)

Deletes multiple entries in the cache.

Options are passed to the underlying cache implementation.

Parameters

names req
options opt = nil
Source
# File activesupport/lib/active_support/cache.rb, line 494
      def delete_multi(names, options = nil)
        options = merged_options(options)
        names.map! { |key| normalize_key(key, options) }

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

Defined in activesupport/lib/active_support/cache.rb line 494 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Cache::Store

Type at least 2 characters to search.

↑↓ navigate · open · esc close