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

Method SetAsync

cache/compression.go:73–75  ·  view source on GitHub ↗

SetAsync implements Cache.

(key string, value []byte, ttl time.Duration)

Source from the content-addressed store, hash-verified

71
72// SetAsync implements Cache.
73func (s *SnappyCache) SetAsync(key string, value []byte, ttl time.Duration) {
74 s.next.SetAsync(key, snappy.Encode(nil, value), ttl)
75}
76
77// SetMultiAsync implements Cache.
78func (s *SnappyCache) SetMultiAsync(data map[string][]byte, ttl time.Duration) {

Callers

nothing calls this directly

Calls 2

SetAsyncMethod · 0.65
EncodeMethod · 0.65

Tested by

no test coverage detected