class LHC::Caching

def from_cache(request, data)

converts json we read from the cache to an LHC::Response object
def from_cache(request, data)
  raw = Typhoeus::Response.new(data)
  response = LHC::Response.new(raw, request, from_cache: true)
  request.response = response
  response
end