Flowdock
method

delete_entry

Importance_0
v4.0.2 - Show latest stable - 0 notes - Class: ActiveSupport::Cache::FileStore
delete_entry(key, options) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/cache/file_store.rb, line 97
        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
Register or log in to add new notes.