4 ms·
From https://github.com/ammario/redjet#streaming https://github.com/ammario/redjet#streaming To minimize allocations, call (*Result).WriteTo instead of (*Res
by daniel-thompson 3y ago
From https://github.com/ammario/redjet#streaming https://github.com/ammario/redjet#streaming
To minimize allocations, call (*Result).WriteTo instead of (*Result).Bytes. WriteTo streams the response directly to an io.Writer such as a file or HTTP response.
- ammario 3y agoSorry, my comment wasn't clear that I was referring to ruedis and not redjet. I edited it.