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

Method Set

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

Source from the content-addressed store, hash-verified

42}
43
44func (c *Versioned) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error {
45 return c.cache.Set(ctx, c.addVersion(key), value, ttl)
46}
47
48func (c *Versioned) Add(ctx context.Context, key string, value []byte, ttl time.Duration) error {
49 return c.cache.Add(ctx, c.addVersion(key), value, ttl)

Callers

nothing calls this directly

Calls 2

addVersionMethod · 0.95
SetMethod · 0.65

Tested by

no test coverage detected