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

Method GetByKey

tools/cache/expiration_cache.go:109–112  ·  view source on GitHub ↗

GetByKey returns the item stored under the key, or sets exists=false.

(key string)

Source from the content-addressed store, hash-verified

107
108// GetByKey returns the item stored under the key, or sets exists=false.
109func (c *ExpirationCache) GetByKey(key string) (interface{}, bool, error) {
110 obj, exists := c.getOrExpire(key)
111 return obj, exists, nil
112}
113
114// Get returns unexpired items. It purges the cache of expired items in the
115// process.

Callers

nothing calls this directly

Calls 1

getOrExpireMethod · 0.95

Tested by

no test coverage detected