Sha256: ec8725a68620b3335981fd150384214cd46180db3830237b9b9cb85c7907b8ae

Contents?: true

Size: 198 Bytes

Versions: 6527

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,527 entries across 6,524 versions & 27 rubygems

Version Path
ory-client-0.0.1.alpha75 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha74 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha73 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha72 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha71 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha70 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha69 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha68 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha67 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha66 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-oathkeeper-client-0.38.19.beta1 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-oathkeeper-client-0.38.18.beta1 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-oathkeeper-client-0.38.17.beta1 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
avalara_sdk-2.4.7 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha58 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha57 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha56 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha55 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha54 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha53 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb