Sha256: 589a723accfe1f71e043811f56d08e8a7994cbc52931b6f241c17942ae98ec90
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 Bytes
Contents
# frozen_string_literal: true require 'typhoeus' # rubocop:disable Style/Documentation module Kovid # rubocop:enable Style/Documentation # Caches HTTP requests class Cache def initialize @memory = {} end def get(request) @memory[request] end def set(request, response) @memory[request] = response end end Typhoeus::Config.cache = Cache.new end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kovid-0.6.6 | lib/kovid/cache.rb |