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

Method Add

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

Source from the content-addressed store, hash-verified

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)
93}
94
95// GetMulti implements Cache.
96func (s *SnappyCache) GetMulti(ctx context.Context, keys []string, opts ...Option) map[string][]byte {

Callers

nothing calls this directly

Calls 2

AddMethod · 0.65
EncodeMethod · 0.65

Tested by

no test coverage detected