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, = nil) return 0 if names.empty? = () names.map! { |key| normalize_key(key, ) } instrument_multi(:delete_multi, names, ) do delete_multi_entries(names, **) end end |