MCPcopy
hub / github.com/gofiber/fiber / ResetWithContext

Method ResetWithContext

middleware/cache/cache_test.go:178–184  ·  view source on GitHub ↗
(context.Context)

Source from the content-addressed store, hash-verified

176}
177
178func (s *failingCacheStorage) ResetWithContext(context.Context) error {
179 s.mu.Lock()
180 defer s.mu.Unlock()
181 s.data = make(map[string][]byte)
182 s.errs = make(map[string]error)
183 return nil
184}
185
186func (s *failingCacheStorage) Reset() error {
187 return s.ResetWithContext(context.Background())

Callers 1

ResetMethod · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected