method
read_entry
v6.1.3.1 -
Show latest stable
- Class:
ActiveSupport::Cache::FileStore
read_entry(key, **options)private
No documentation available.
# File activesupport/lib/active_support/cache/file_store.rb, line 75
def read_entry(key, **options)
if File.exist?(key)
entry = File.open(key) { |f| deserialize_entry(f.read) }
entry if entry.is_a?(Cache::Entry)
end
rescue => e
logger.error("FileStoreError (#{e}): #{e.message}") if logger
nil
end