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
Source
# File lib/rack/cache/entity_store.rb 369 def self.resolve(uri) 370 new 371 end
Public Instance Methods
Source
# File lib/rack/cache/entity_store.rb 360 def write(body, ttl=nil) 361 key, size = slurp(body) { |part| part } 362 [key, size] 363 end