Method
Set
(ctx context.Context, key string, value []byte, ttl time.Duration)
Source from the content-addressed store, hash-verified
| 157 | } |
| 158 | |
| 159 | func (m *InstrumentedMockCache) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error { |
| 160 | m.storeCount.Inc() |
| 161 | return m.cache.Set(ctx, key, value, ttl) |
| 162 | } |
| 163 | |
| 164 | func (m *InstrumentedMockCache) Add(ctx context.Context, key string, value []byte, ttl time.Duration) error { |
| 165 | m.storeCount.Inc() |
Callers
nothing calls this directly
Tested by
no test coverage detected