Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pilot/pkg/model/typed_xds_cache.go

    }
    
    type cacheValue struct {
    	value            *discovery.Resource
    	token            CacheToken
    	dependentConfigs []ConfigHash
    }
    
    func (l *lruCache[K]) Get(key K) *discovery.Resource {
    	return l.get(key, 0)
    }
    
    // get return the cached value if it exists.
    func (l *lruCache[K]) get(key K, token CacheToken) *discovery.Resource {
    	l.mu.Lock()
    	defer l.mu.Unlock()
    	cv, ok := l.store.Get(key)
    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