- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for NewTTLStore (0.17 sec)
-
pkg/kubelet/util/cache/object_cache.go
// updater returns an object to cache. func NewObjectCache(f func() (interface{}, error), ttl time.Duration) *ObjectCache { return &ObjectCache{ updater: f, cache: expirationcache.NewTTLStore(stringKeyFunc, ttl), } } // stringKeyFunc is a string as cache key function func stringKeyFunc(obj interface{}) (string, error) { key := obj.(objectEntry).key return key, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 25 04:07:36 UTC 2022 - 2.1K bytes - Viewed (0)