instance method
delete_entry
Ruby on Rails 3.0.20
Since v3.0.20Signature
delete_entry(key, options)
No documentation comment.
Parameters
-
keyreq -
optionsreq
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 104
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
Defined in activesupport/lib/active_support/cache/file_store.rb line 104
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore