Proxy server with LRU caching in Ruby