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
ory-client-0.0.1.alpha109 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
avalara_sdk-2.4.26 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha108 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-oathkeeper-client-0.38.23.beta1 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-oathkeeper-client-0.38.22.beta1 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha107 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-hydra-client-1.11.7 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha106 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-hydra-client-1.11.6 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-keto-client-0.8.0.alpha1 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha105 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha104 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha103 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-hydra-client-1.11.5 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
cloudsmith-api-1.30.0 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha101 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha100 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-hydra-client-1.11.4 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha99 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha98 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb