MCPcopy
hub / github.com/dosco/graphjin / Delete

Method Delete

core/fstable_cache.go:42–48  ·  view source on GitHub ↗
(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

40}
41
42func (b cacheInvalidatingFilesystemBackend) Delete(ctx context.Context, key string) error {
43 err := b.backend.Delete(ctx, key)
44 if err == nil && b.cache != nil {
45 _ = b.cache.InvalidateRows(ctx, FilesystemKeyRefs(b.name, key))
46 }
47 return err
48}
49
50func (b cacheInvalidatingFilesystemBackend) Presign(ctx context.Context, key string, op fstable.PresignOp, ttl time.Duration) (string, error) {
51 return b.backend.Presign(ctx, key, op, ttl)

Callers

nothing calls this directly

Calls 3

FilesystemKeyRefsFunction · 0.85
DeleteMethod · 0.65
InvalidateRowsMethod · 0.65

Tested by

no test coverage detected