method
delete_entry
v8.0.0 -
Show latest stable
- Class:
ActiveSupport::Cache::FileStore
delete_entry(key, **options)private
No documentation available.
# File activesupport/lib/active_support/cache/file_store.rb, line 131
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