Method: ActionDispatch::RailsEntityStore#write

Defined in:
actionpack/lib/action_dispatch/http/rack_cache.rb

#write(body) ⇒ Object



56
57
58
59
60
61
# File 'actionpack/lib/action_dispatch/http/rack_cache.rb', line 56

def write(body)
  buf = []
  key, size = slurp(body) { |part| buf << part }
  @store.write(key, buf)
  [key, size]
end