class Typhoeus::Cache::Dalli
def initialize(client = ::Dalli::Client.new, options = {})
-
default_ttl
(Integer
) -- -
client
(Dalli::Client
) --
Other tags:
- Example: Set Dalli as the Typhoeus cache backend -
def initialize(client = ::Dalli::Client.new, options = {}) @client = client @default_ttl = options[:default_ttl] end