MCPcopy Create free account
hub / github.com/TalkingData/owl / delete

Method delete

controller/cache/cache.go:154–164  ·  view source on GitHub ↗
(k string)

Source from the content-addressed store, hash-verified

152}
153
154func (c *cache) delete(k string) (interface{}, bool) {
155 //
156 if c.onEvicted != nil {
157 if v, found := c.items[k]; found {
158 delete(c.items, k)
159 return v.Object, true
160 }
161 }
162 delete(c.items, k)
163 return nil, false
164}
165
166func (c *cache) Delete(k string) {
167 c.mu.Lock()

Callers 2

DeleteMethod · 0.95
DeleteExpiredMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected