class Rack::Cache::EntityStore::Noop
Noop Entity Store backend.
Set ‘entitystore` to ’noop:/‘. Does not persist response bodies (no disk/memory used). Responses from the cache will have an empty body. Clients must ignore these empty cached response (check for x-rack-cache response header). Atm cannot handle streamed responses, patch needed.
Public Class Methods
Public Instance Methods
Source
# File lib/rack/cache/entity_store.rb, line 354 def write(body, ttl=nil) key, size = slurp(body) { |part| part } [key, size] end