Class Typhoeus::Cache::Rails
In: lib/typhoeus/cache/rails.rb
Parent: Object

This module provides a simple way to cache HTTP responses in using the Rails cache.

Methods

get   new   set  

Public Class methods

@example Use the Rails cache setup to cache Typhoeus responses.

  Typhoeus::Config.cache = Typhoeus::Cache::Rails.new

@param [ ActiveSupport::Cache::Store ] cache

  A Rails cache backend. Defaults to Rails.cache.

@param [ Integer ] default_ttl

  The default TTL of cached responses in seconds, for requests which do not set a cache_ttl.

Public Instance methods

[Validate]