Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
174
func
(c *BufferCache) Flush() {
175
c.flushCold()
176
c.flushHot()
177
c.m.reset()
178
}
179
180
func
(c *BufferCache) flushHot() {
181
for
_, buf :=
range
c.hot.m {
Callers
5
benchmarkHotPutNoFlush
Function · 0.45
benchmarkColdPutNoFlush
Function · 0.45
TestBufferCache_PutAndFlushCompressed
Function · 0.45
TestBufferCache_PutAndFlush
Function · 0.45
TestBufferCacheMoveToHotCache
Function · 0.45
Calls
3
flushCold
Method · 0.95
flushHot
Method · 0.95
reset
Method · 0.80
Tested by
5
benchmarkHotPutNoFlush
Function · 0.36
benchmarkColdPutNoFlush
Function · 0.36
TestBufferCache_PutAndFlushCompressed
Function · 0.36
TestBufferCache_PutAndFlush
Function · 0.36
TestBufferCacheMoveToHotCache
Function · 0.36