Sha256: ec8725a68620b3335981fd150384214cd46180db3830237b9b9cb85c7907b8ae

Contents?: true

Size: 198 Bytes

Versions: 6525

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

Version Path
typhoeus-0.7.1 spec/support/memory_cache.rb
typhoeus-0.7.0 spec/support/memory_cache.rb
typhoeus-0.7.0.pre1 spec/support/memory_cache.rb
typhoeus-0.6.9 spec/support/memory_cache.rb
typhoeus-0.6.8 spec/support/memory_cache.rb