instance method
delete
Ruby on Rails 8.0.4
Since v2.2.3Signature
delete(name, options = nil)
Deletes an entry in the cache. Returns true if an entry is deleted and false otherwise.
Options are passed to the underlying cache implementation.
Parameters
-
namereq -
optionsopt = nil
Source
# File activesupport/lib/active_support/cache.rb, line 677
def delete(name, options = nil)
options = merged_options(options)
key = normalize_key(name, options)
instrument(:delete, key, options) do
delete_entry(key, **options)
end
end
Defined in activesupport/lib/active_support/cache.rb line 677
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store