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.alpha94 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha93 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha92 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-oathkeeper-client-0.38.20.beta1 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha91 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha90 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha89 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha88 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha87 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha86 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha85 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha84 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha83 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha82 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha81 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha80 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha79 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha78 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha77 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb
ory-client-0.0.1.alpha76 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.4.0/spec/support/memory_cache.rb