MCPcopy Create free account
hub / github.com/rilldata/rill / close

Method close

runtime/catalog_cache.go:87–91  ·  view source on GitHub ↗

close closes the catalog cache, flushing any changes to the underlying store.

(ctx context.Context)

Source from the content-addressed store, hash-verified

85
86// close closes the catalog cache, flushing any changes to the underlying store.
87func (c *catalogCache) close(ctx context.Context) error {
88 err := c.flush(ctx)
89 c.release()
90 return err
91}
92
93// flush flushes changes to the underlying store.
94// Unlike other catalog functions, it is safe to call flush concurrently with calls to get and list (i.e. under a read lock).

Callers

nothing calls this directly

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected