instance method
read_entry
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
read_entry(key, options)
No documentation comment.
Parameters
-
keyreq -
optionsreq
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 80
def read_entry(key, options)
file_name = key_file_path(key)
if File.exist?(file_name)
File.open(file_name) { |f| Marshal.load(f) }
end
rescue
nil
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 80
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore