MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Delete

Method Delete

pkg/cache/memory.go:53–57  ·  view source on GitHub ↗
(_ context.Context, key string)

Source from the content-addressed store, hash-verified

51}
52
53func (m *memoryCache[T]) Delete(_ context.Context, key string) error {
54 m.lru.Remove(key)
55 m.logger.Debugw("msg", "cache delete", "key", key, "backend", "memory")
56 return nil
57}
58
59func (m *memoryCache[T]) Purge(_ context.Context) error {
60 m.lru.Purge()

Callers

nothing calls this directly

Calls 1

DebugwMethod · 0.65

Tested by

no test coverage detected