def save
      directory = File.dirname @path
      
      unless File.directory? directory
        Dir.mkdir directory
      end

      File.open @path, ?w do |file|
        YAML.dump @hash, file
      end
    end
def save
      directory = File.dirname @path
      
      unless File.directory? directory
        Dir.mkdir directory
      end

      File.open @path, ?w do |file|
        YAML.dump @hash, file
      end
    end
Saves the cache as a YAML file.