Class | Typhoeus::Cache::Redis |
In: |
lib/typhoeus/cache/redis.rb
|
Parent: | Object |
@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.