instance method
delete_entry
Ruby on Rails 6.0.6
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 154
def delete_entry(key, **options)
synchronize do
@key_access.delete(key)
entry = @data.delete(key)
@cache_size -= cached_size(key, entry) if entry
!!entry
end
end
Defined in activesupport/lib/active_support/cache/memory_store.rb line 154
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemoryStore