MCPcopy
hub / github.com/kubernetes/client-go / Delete

Method Delete

tools/cache/expiration_cache.go:168–177  ·  view source on GitHub ↗

Delete removes an item from the cache.

(obj interface{})

Source from the content-addressed store, hash-verified

166
167// Delete removes an item from the cache.
168func (c *ExpirationCache) Delete(obj interface{}) error {
169 key, err := c.keyFunc(obj)
170 if err != nil {
171 return KeyError{obj, err}
172 }
173 c.expirationLock.Lock()
174 defer c.expirationLock.Unlock()
175 c.cacheStorage.Delete(key)
176 return nil
177}
178
179// Replace will convert all items in the given list to TimestampedEntries
180// before attempting the replace operation. The replace operation will

Callers

nothing calls this directly

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected