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

Method Add

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

Source from the content-addressed store, hash-verified

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)
50}
51
52func (c *Versioned) GetMulti(ctx context.Context, keys []string, opts ...Option) map[string][]byte {
53 result, err := c.GetMultiWithError(ctx, keys, opts...)

Callers

nothing calls this directly

Calls 2

addVersionMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected