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.



686
687
688
689
690
691
692
693
# File 'lib/active_support/cache.rb', line 686

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