Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cache_flush_total (0.43 sec)

  1. operator/pkg/metrics/monitoring.go

    	LegacyPathTranslationTotal = monitoring.NewSum(
    		"legacy_path_translation_total",
    		"Number of times a legacy API path is translated",
    	)
    
    	// CacheFlushTotal counts number of cache flushes.
    	CacheFlushTotal = monitoring.NewSum(
    		"cache_flush_total",
    		"number of times operator cache was flushed",
    	)
    )
    
    func init() {
    	initOperatorCrdResourceMetrics()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 7K bytes
    - Viewed (0)
  2. operator/pkg/cache/cache.go

    )
    
    // FlushObjectCaches flushes all object caches.
    func FlushObjectCaches() {
    	objectCachesMu.Lock()
    	defer objectCachesMu.Unlock()
    	objectCaches = make(map[string]*ObjectCache)
    	metrics.CacheFlushTotal.Increment()
    }
    
    // GetCache returns the object Cache for the given name, creating one in the global Cache if needed.
    func GetCache(name string) *ObjectCache {
    	objectCachesMu.Lock()
    	defer objectCachesMu.Unlock()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 06 13:12:49 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top