instance method
delete_entry
Ruby on Rails 8.0.4
Since v5.2.8.1 PrivateSignature
delete_entry(key, **options)
No documentation comment.
Parameters
-
keyreq -
optionskeyrest
Source
# File activesupport/lib/active_support/cache/memory_store.rb, line 231
def delete_entry(key, **options)
synchronize do
payload = @data.delete(key)
@cache_size -= cached_size(key, payload) if payload
!!payload
end
end
Defined in activesupport/lib/active_support/cache/memory_store.rb line 231
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemoryStore