Sha256: ec8725a68620b3335981fd150384214cd46180db3830237b9b9cb85c7907b8ae

Contents?: true

Size: 198 Bytes

Versions: 6850

Compression:

Stored size: 198 Bytes

Contents

class MemoryCache
  attr_reader :memory

  def initialize
    @memory = {}
  end

  def get(request)
    memory[request]
  end

  def set(request, response)
    memory[request] = response
  end
end

Version data entries

6,850 entries across 6,847 versions & 28 rubygems

Version Path
cloudsmith-api-0.49.98 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.3.1/spec/support/memory_cache.rb
cloudsmith-api-0.49.94 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.3.1/spec/support/memory_cache.rb
cloudsmith-api-0.49.21 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.3.1/spec/support/memory_cache.rb
cloudsmith-api-0.49.15 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.3.1/spec/support/memory_cache.rb
cloudsmith-api-0.49.13 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.3.1/spec/support/memory_cache.rb
cloudsmith-api-0.49.9 vendor/bundle/ruby/2.3.0/gems/typhoeus-1.3.1/spec/support/memory_cache.rb
cloudsmith-api-0.44.4 vendor/bundle/ruby/2.3.0/gems/typhoeus-1.3.1/spec/support/memory_cache.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/typhoeus-1.3.0/spec/support/memory_cache.rb
approveapi-1.0.8 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.3.1/spec/support/memory_cache.rb
approveapi-1.0.5 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.3.1/spec/support/memory_cache.rb
typhoeus-1.3.1 spec/support/memory_cache.rb
cloudsmith-api-0.30.7 vendor/bundle/ruby/2.3.0/gems/typhoeus-1.3.0/spec/support/memory_cache.rb
color_me_shop-1.0.0 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.3.0/spec/support/memory_cache.rb
cloudsmith-api-0.21.4 vendor/bundle/ruby/2.3.0/gems/typhoeus-1.3.0/spec/support/memory_cache.rb
typhoeus-1.3.0 spec/support/memory_cache.rb
typhoeus-1.1.2 spec/support/memory_cache.rb
typhoeus-1.1.1 spec/support/memory_cache.rb
typhoeus-1.1.0 spec/support/memory_cache.rb
typhoeus-1.0.2 spec/support/memory_cache.rb
typhoeus-1.0.1 spec/support/memory_cache.rb