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 | |
| 87 | func (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 | |
| 91 | func (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
Tested by
no test coverage detected