(_ context.Context, key string)
| 51 | } |
| 52 | |
| 53 | func (m *memoryCache[T]) Delete(_ context.Context, key string) error { |
| 54 | m.lru.Remove(key) |
| 55 | m.logger.Debugw("msg", "cache delete", "key", key, "backend", "memory") |
| 56 | return nil |
| 57 | } |
| 58 | |
| 59 | func (m *memoryCache[T]) Purge(_ context.Context) error { |
| 60 | m.lru.Purge() |