MCPcopy Create free account
hub / github.com/devfeel/dotweb / ClearAll

Method ClearAll

cache/runtime/cache_runtime.go:219–224  ·  view source on GitHub ↗

ClearAll will delete all item in runtime cache.

()

Source from the content-addressed store, hash-verified

217
218// ClearAll will delete all item in runtime cache.
219func (ca *RuntimeCache) ClearAll() error {
220 ca.Lock()
221 defer ca.Unlock()
222 ca.items = new(sync.Map)
223 return nil
224}
225
226func (ca *RuntimeCache) gc() {
227 for {

Callers 1

Calls

no outgoing calls

Tested by 1