class Geminabox::Geminabox::DiskCache

def read(key_hash)

def read(key_hash)
  read_int(key_hash) do |path|
    begin
      File.read(path)
    rescue Errno::ENOENT
      # There is a possibility that the file is removed by another process
      # after checking File.exist?. Return nil if the file does not exist.
      nil
    end
  end
end