Class Typhoeus::Cache::Redis
In: lib/typhoeus/cache/redis.rb
Parent: Object

This module provides a simple way to cache HTTP responses in Redis.

Methods

get   new   set  

Public Class methods

@example Set Redis as the Typhoeus cache backend

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

@param [ Redis ] redis

  A connection to Redis. Defaults to `Redis.new`, which uses the
  `REDIS_URL` environment variable to connect

@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]