MCPcopy Create free account
hub / github.com/AdRoll/baker / Flush

Method Flush

pkg/buffercache/cache.go:174–178  ·  view source on GitHub ↗

Flush flushes the whole cache.

()

Source from the content-addressed store, hash-verified

172
173// Flush flushes the whole cache.
174func (c *BufferCache) Flush() {
175 c.flushCold()
176 c.flushHot()
177 c.m.reset()
178}
179
180func (c *BufferCache) flushHot() {
181 for _, buf := range c.hot.m {

Calls 3

flushColdMethod · 0.95
flushHotMethod · 0.95
resetMethod · 0.80