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