Method
SetAsync
cache/mock.go:32–36
· cache/mock.go::MockCache.SetAsync
(key string, value []byte, ttl time.Duration)
Source from the content-addressed store, hash-verified
| 30 | } |
| 31 | |
| 32 | func (m *MockCache) SetAsync(key string, value []byte, ttl time.Duration) { |
| 33 | m.mu.Lock() |
| 34 | defer m.mu.Unlock() |
| 35 | m.cache[key] = Item{Data: value, ExpiresAt: m.now.Add(ttl)} |
| 36 | } |
| 37 | |
| 38 | func (m *MockCache) SetMultiAsync(data map[string][]byte, ttl time.Duration) { |
| 39 | m.mu.Lock() |
Callers
nothing calls this directly
Tested by
no test coverage detected