MCPcopy
hub / github.com/grafana/dskit / Delete

Method Delete

cache/versioned.go:81–83  ·  view source on GitHub ↗
(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

79}
80
81func (c *Versioned) Delete(ctx context.Context, key string) error {
82 return c.cache.Delete(ctx, c.addVersion(key))
83}
84
85func (c *Versioned) addVersion(k string) string {
86 return c.versionPrefix + k

Callers 1

TestVersionedFunction · 0.95

Calls 2

addVersionMethod · 0.95
DeleteMethod · 0.65

Tested by 1

TestVersionedFunction · 0.76