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

Method SetAsync

cache/versioned.go:32–34  ·  view source on GitHub ↗
(key string, value []byte, ttl time.Duration)

Source from the content-addressed store, hash-verified

30}
31
32func (c *Versioned) SetAsync(key string, value []byte, ttl time.Duration) {
33 c.cache.SetAsync(c.addVersion(key), value, ttl)
34}
35
36func (c *Versioned) SetMultiAsync(data map[string][]byte, ttl time.Duration) {
37 versioned := make(map[string][]byte, len(data))

Callers

nothing calls this directly

Calls 2

addVersionMethod · 0.95
SetAsyncMethod · 0.65

Tested by

no test coverage detected