lib/active_support/cache.rb in activesupport-7.2.1.2 vs lib/active_support/cache.rb in activesupport-7.2.2

- old
+ new

@@ -673,11 +673,11 @@ # Options are passed to the underlying cache implementation. def delete(name, options = nil) options = merged_options(options) key = normalize_key(name, options) - instrument(:delete, key) do + instrument(:delete, key, options) do delete_entry(key, **options) end end # Deletes multiple entries in the cache. Returns the number of deleted @@ -688,10 +688,10 @@ return 0 if names.empty? options = merged_options(options) names.map! { |key| normalize_key(key, options) } - instrument_multi :delete_multi, names do + instrument_multi(:delete_multi, names, options) do delete_multi_entries(names, **options) end end # Returns +true+ if the cache contains an entry for the given key.