# File lib/merb-cache/cache-store/file.rb, line 109 def cache_get(key) cache_file = @config[:cache_directory] / "#{key}.cache" if File.file?(cache_file) _data, _expire = Marshal.load(cache_read(cache_file)) if _expire.nil? || Time.now < _expire Merb.logger.info("cache: hit (#{key})") return _data end FileUtils.rm_f(cache_file) end Merb.logger.info("cache: miss (#{key})") nil end