Class | Typhoeus::Cache::Dalli |
In: |
lib/typhoeus/cache/dalli.rb
|
Parent: | Object |
@example Set Dalli as the Typhoeus cache backend
Typhoeus::Config.cache = Typhoeus::Cache::Dalli.new
@param [ Dalli::Client ] client
A connection to the cache server. Defaults to `Dalli::Client.new`
@param [ Integer ] default_ttl
The default TTL of cached responses in seconds, for requests which do not set a cache_ttl.