(ctx context.Context, key string, body io.Reader, meta fstable.PutMeta)
| 32 | } |
| 33 | |
| 34 | func (b cacheInvalidatingFilesystemBackend) Put(ctx context.Context, key string, body io.Reader, meta fstable.PutMeta) (fstable.Entry, error) { |
| 35 | entry, err := b.backend.Put(ctx, key, body, meta) |
| 36 | if err == nil && b.cache != nil { |
| 37 | _ = b.cache.InvalidateRows(ctx, FilesystemKeyRefs(b.name, entry.Key)) |
| 38 | } |
| 39 | return entry, err |
| 40 | } |
| 41 | |
| 42 | func (b cacheInvalidatingFilesystemBackend) Delete(ctx context.Context, key string) error { |
| 43 | err := b.backend.Delete(ctx, key) |
nothing calls this directly
no test coverage detected