Class Amazon::Search::Cache
In: lib/amazon/search/cache.rb
Parent: Object

This class is used internally by Ruby/Amazon. You should never need to manually instantiate it or invoke most of the methods here. The only exceptions are flush_all and flush_expired.

Methods

Classes and Modules

Class Amazon::Search::Cache::PathError

Constants

MAX_AGE = 1.0   Age in days below which to consider cache files valid.

Public Class methods

Public Instance methods

Cache the data from contents and associate it with url.

Determine whether or not the the response to a given URL is cached. Returns true or false.

This method flushes all files from the cache directory specified in the object’s @path variable.

This method flushes expired files from the cache directory specified in the object’s @path variable.

Retrieve the cached response associated with url.

[Validate]