jonahoffline/autoexpreso-cli

View on GitHub
lib/autoexpreso/cache.rb

Summary

Maintainability
A
0 mins
Test Coverage
module AutoExpreso
  class Cache
    def initialize
      @memory = Hash.new
    end

    def get(request)
      @memory[request]
    end

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