method
delete_entry
v4.2.7 -
Show latest stable
- Class:
ActiveSupport::Cache::FileStore
delete_entry(key, options)protected
No documentation available.
# File activesupport/lib/active_support/cache/file_store.rb, line 87
def delete_entry(key, options)
file_name = key_file_path(key)
if File.exist?(file_name)
begin
File.delete(file_name)
delete_empty_directories(File.dirname(file_name))
true
rescue => e
# Just in case the error was caused by another process deleting the file first.
raise e if File.exist?(file_name)
false
end
end
end