class Rack::Cache::EntityStore::Noop


Atm cannot handle streamed responses, patch needed.
Clients must ignore these empty cached response (check for x-rack-cache response header).
Responses from the cache will have an empty body.
Does not persist response bodies (no disk/memory used).
Set ‘entitystore` to ’noop:/‘.
Noop Entity Store backend.

def self.resolve(uri)

def self.resolve(uri)
  new
end

def exist?(key)

def exist?(key)
  true
end

def open(key)

def open(key)
  []
end

def purge(key)

def purge(key)
  nil
end

def read(key)

def read(key)
  ''
end

def write(body, ttl=nil)

def write(body, ttl=nil)
  key, size = slurp(body) { |part| part }
  [key, size]
end