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