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, = nil) = () key = normalize_key(name, ) instrument(:delete, key, ) do delete_entry(key, **) end end |