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

Method Set

pkg/cache/memory.go:47–51  ·  view source on GitHub ↗
(_ context.Context, key string, value T)

Source from the content-addressed store, hash-verified

45}
46
47func (m *memoryCache[T]) Set(_ context.Context, key string, value T) error {
48 m.lru.Add(key, value)
49 m.logger.Debugw("msg", "cache set", "key", key, "backend", "memory")
50 return nil
51}
52
53func (m *memoryCache[T]) Delete(_ context.Context, key string) error {
54 m.lru.Remove(key)

Callers

nothing calls this directly

Calls 2

DebugwMethod · 0.65
AddMethod · 0.45

Tested by

no test coverage detected