Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
require 'faraday'
require 'faraday_middleware'
require 'json'
require './my_cache_store'
store =
CONNECTION = '') do |faraday|
faraday.use FaradayMiddleware::Caching, store
faraday.request :url_encoded
faraday.adapter Faraday.default_adapter
faraday.response :logger
load File.expand_path('../', __FILE__) + '/fetcher.rb'
❯ ruby complete_custom_store_example.rb
Number of stargazers: 30
Number of requests made: 10
Response times: [1.03, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]