(_ context.Context, key string, value T)
| 45 | } |
| 46 | |
| 47 | func (m *memoryCache[T]) Set(_ context.Context, key string, value T) error { |
| 48 | m.lru.Add(key, value) |
| 49 | m.logger.Debugw("msg", "cache set", "key", key, "backend", "memory") |
| 50 | return nil |
| 51 | } |
| 52 | |
| 53 | func (m *memoryCache[T]) Delete(_ context.Context, key string) error { |
| 54 | m.lru.Remove(key) |