Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for onEvict (0.07 sec)

  1. pilot/pkg/model/typed_xds_cache.go

    	cache := &lruCache[K]{
    		enableAssertions: features.EnableUnsafeAssertions,
    		configIndex:      map[ConfigHash]sets.Set[K]{},
    		evictQueue:       make([]evictKeyConfigs[K], 0, 1000),
    	}
    	cache.store = newLru(cache.onEvict)
    	return cache
    }
    
    type evictKeyConfigs[K comparable] struct {
    	key              K
    	dependentConfigs []ConfigHash
    }
    
    type lruCache[K comparable] struct {
    	enableAssertions bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top