- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for LRUCache (0.06 sec)
-
pilot/pkg/model/typed_xds_cache.go
} type evictKeyConfigs[K comparable] struct { key K dependentConfigs []ConfigHash } type lruCache[K comparable] struct { enableAssertions bool store simplelru.LRUCache[K, cacheValue] // token stores the latest token of the store, used to prevent stale data overwrite. // It is refreshed when Clear or ClearAll are called token CacheToken mu sync.RWMutex
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 05:26:03 UTC 2024 - 11K bytes - Viewed (0) -
pilot/pkg/model/typed_xds_cache_test.go
ConfigKey{Kind: kind.DestinationRule, Name: "name", Namespace: "namespace"}.HashCode(), }, } c := newTypedXdsCache[uint64]() cache := c.(*lruCache[uint64]) assert.Equal(t, cache.store.Len(), 0) assert.Equal(t, cache.indexLength(), 0) // adding the entry populates the indexes c.Add(firstEntry.Key(), firstEntry, req, res)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jan 29 20:35:31 UTC 2024 - 18.2K bytes - Viewed (0)