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