MCPcopy
hub / github.com/grafana/dskit / Flush

Method Flush

cache/mock.go:118–123  ·  view source on GitHub ↗

Flush removes all entries from the cache

()

Source from the content-addressed store, hash-verified

116
117// Flush removes all entries from the cache
118func (m *MockCache) Flush() {
119 m.mu.Lock()
120 defer m.mu.Unlock()
121
122 m.cache = map[string]Item{}
123}
124
125// Advance changes "now" by the given duration
126func (m *MockCache) Advance(d time.Duration) {

Callers 1

NewMockCacheFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected