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

Method Set

cache/compression.go:87–89  ·  cache/compression.go::SnappyCache.Set
(ctx context.Context, key string, value []byte, ttl time.Duration)

Source from the content-addressed store, hash-verified

85}
86
87func (s *SnappyCache) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error {
88 return s.next.Set(ctx, key, snappy.Encode(nil, value), ttl)
89}
90
91func (s *SnappyCache) Add(ctx context.Context, key string, value []byte, ttl time.Duration) error {
92 return s.next.Add(ctx, key, snappy.Encode(nil, value), ttl)

Callers

nothing calls this directly

Calls 2

SetMethod · 0.65
EncodeMethod · 0.65

Tested by

no test coverage detected