Method
Add
(ctx context.Context, key string, value []byte, ttl time.Duration)
Source from the content-addressed store, hash-verified
| 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) |
| 93 | } |
| 94 | |
| 95 | // GetMulti implements Cache. |
| 96 | func (s *SnappyCache) GetMulti(ctx context.Context, keys []string, opts ...Option) map[string][]byte { |
Callers
nothing calls this directly
Tested by
no test coverage detected