Method: ActiveSupport::Cache::Store#delete

Defined in:
lib/active_support/cache.rb

#delete(name, options = nil) ⇒ Object

Deletes an entry in the cache. Returns true if an entry is deleted and false otherwise.

Options are passed to the underlying cache implementation.



674
675
676
677
678
679
680
681
# File 'lib/active_support/cache.rb', line 674

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