# File lib/amazon/search/cache.rb, line 73 def cache(url, contents) digest = Digest::MD5.hexdigest(url) cache_file = File.join(@path, digest) Amazon::dprintf("Caching %s...\n", digest) File.open(cache_file, 'w') { |f| f.puts contents } end