class Faraday::HttpCache::Storage
def lookup_store(store, options)
options - Additional options for the cache store.
store - A 'Symbol' with the store name.
Internal: Creates a cache store from 'ActiveSupport' with a set of options.
def lookup_store(store, options) if @logger @logger.warn "Passing a Symbol as the 'store' is deprecated, please pass the cache store instead." end begin require 'active_support/cache' ActiveSupport::Cache.lookup_store(store, options) rescue LoadError => e puts "You're missing the 'activesupport' gem. Add it to your Gemfile, bundle it and try again" raise e end end