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

Method Set

cache/mock.go:159–162  ·  view source on GitHub ↗
(ctx context.Context, key string, value []byte, ttl time.Duration)

Source from the content-addressed store, hash-verified

157}
158
159func (m *InstrumentedMockCache) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error {
160 m.storeCount.Inc()
161 return m.cache.Set(ctx, key, value, ttl)
162}
163
164func (m *InstrumentedMockCache) Add(ctx context.Context, key string, value []byte, ttl time.Duration) error {
165 m.storeCount.Inc()

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected