instance method
delete_entry
Ruby on Rails 7.2.3
Since v3.0.20 PrivateSignature
delete_entry(key, **options)
No documentation comment.
Parameters
-
keyreq -
optionskeyrest
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 121
def delete_entry(key, **options)
if File.exist?(key)
begin
File.delete(key)
delete_empty_directories(File.dirname(key))
true
rescue
# Just in case the error was caused by another process deleting the file first.
raise if File.exist?(key)
false
end
else
false
end
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 121
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore