Module: Typhoeus::Request::Cacheable

Defined in:
lib/common/typhoeus_cache.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) cache_key



9
10
11
# File 'lib/common/typhoeus_cache.rb', line 9

def cache_key
  Digest::SHA2.hexdigest("#{url}-#{options[:body]}-#{options[:method]}")[0..32]
end