ngauthier/hydra

undefined method `cache_getter' for #<Typhoeus::Hydra:0x007fafcca40b68>

napster3000 opened this issue · 1 comments

            hydra = Typhoeus::Hydra.new

            ###############
            # Cache
            ###############


             hydra.cache_getter do |request|
                Rails.cache.read(request.cache_key) rescue nil
             end
             hydra.cache_setter do |request|
               Rails.cache.write(request.cache_key,request.response, expires_in: request.cache_timeout)
             end

ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin11.4.2]

Rails 3.2.8

I believe you meant to post that here? https://github.com/typhoeus/typhoeus