MCPcopy
hub / github.com/safing/portmaster / FlushCache

Method FlushCache

base/database/interface_cache.go:75–82  ·  view source on GitHub ↗

FlushCache writes (and thus clears) the write cache.

()

Source from the content-addressed store, hash-verified

73
74// FlushCache writes (and thus clears) the write cache.
75func (i *Interface) FlushCache() {
76 // Check if write cache is in use.
77 if i.options.DelayCachedWrites != "" {
78 return
79 }
80
81 i.flushWriteCache(0)
82}
83
84func (i *Interface) flushWriteCache(percentThreshold int) {
85 i.writeCacheLock.Lock()

Callers 2

ResetCachedRecordFunction · 0.80
clearNameCacheFunction · 0.80

Calls 1

flushWriteCacheMethod · 0.95

Tested by

no test coverage detected