MCPcopy Index your code
hub / github.com/flyteorg/flyte / Delete

Method Delete

flytestdlib/cache/in_memory_auto_refresh.go:214–219  ·  view source on GitHub ↗

Delete deletes the item from the cache if it exists.

(key interface{})

Source from the content-addressed store, hash-verified

212
213// Delete deletes the item from the cache if it exists.
214func (w *InMemoryAutoRefresh) Delete(key interface{}) {
215 w.lock.Lock()
216 defer w.lock.Unlock()
217 w.toDelete.Remove(key)
218 w.lruMap.Remove(key)
219}
220
221func (w *InMemoryAutoRefresh) Get(id ItemID) (Item, error) {
222 if val, ok := w.lruMap.Get(id); ok {

Callers 2

enqueueBatchesMethod · 0.95
syncMethod · 0.95

Calls 1

RemoveMethod · 0.45

Tested by

no test coverage detected