Class Typhoeus::Cache::Dalli
In: lib/typhoeus/cache/dalli.rb
Parent: Object

This module provides a simple way to cache HTTP responses using Dalli.

Methods

get   new   set  

Public Class methods

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

Public Instance methods

[Validate]