MCPcopy Create free account
hub / github.com/devfeel/dotweb / Delete

Method Delete

cache/runtime/cache_runtime.go:213–216  ·  view source on GitHub ↗

Delete item in runtime cacha. if not exists, we think it's success

(key string)

Source from the content-addressed store, hash-verified

211// Delete item in runtime cacha.
212// if not exists, we think it's success
213func (ca *RuntimeCache) Delete(key string) error {
214 ca.items.Delete(key)
215 return nil
216}
217
218// ClearAll will delete all item in runtime cache.
219func (ca *RuntimeCache) ClearAll() error {

Callers 1

TestRuntimeCache_DeleteFunction · 0.95

Calls 1

DeleteMethod · 0.65

Tested by 1

TestRuntimeCache_DeleteFunction · 0.76