Class: Faraday::HttpCache::Strategies::ByUrl

Inherits:
BaseStrategy
  • Object
show all
Defined in:
lib/chef-licensing/monkey_patches/faraday_http_cache_sha_patch.rb

Instance Method Summary collapse

Instance Method Details

#cache_key_for(url) ⇒ Object

Override the cache_key_for method to use SHA256



11
12
13
# File 'lib/chef-licensing/monkey_patches/faraday_http_cache_sha_patch.rb', line 11

def cache_key_for(url)
  Digest::SHA256.hexdigest("#{@cache_salt}#{url}")
end