Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for Pasche (0.19 sec)

  1. internal/cachevalue/cache_test.go

    )
    
    func TestCache(t *testing.T) {
    	cache := New[time.Time]()
    	t.Parallel()
    	cache.InitOnce(2*time.Second, Opts{},
    		func() (time.Time, error) {
    			return time.Now(), nil
    		},
    	)
    
    	t1, _ := cache.Get()
    
    	t2, _ := cache.Get()
    
    	if !t1.Equal(t2) {
    		t.Fatalf("expected time to be equal: %s != %s", t1, t2)
    	}
    
    	time.Sleep(3 * time.Second)
    	t3, _ := cache.Get()
    
    	if t1.Equal(t3) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 28 17:09:09 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. cmd/data-usage-cache.go

    // dataUsageCacheV2 contains a cache of data usage entries version 2.
    type dataUsageCacheV2 struct {
    	Info  dataUsageCacheInfo
    	Cache map[string]dataUsageEntryV2
    }
    
    // dataUsageCacheV3 contains a cache of data usage entries version 3.
    type dataUsageCacheV3 struct {
    	Info  dataUsageCacheInfo
    	Cache map[string]dataUsageEntryV3
    }
    
    // dataUsageCacheV4 contains a cache of data usage entries version 4.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  3. cmd/metrics-v3-cache.go

    )
    
    // metricsCache - cache for metrics.
    //
    // When serving metrics, this cache is passed to the MetricsLoaderFn.
    //
    // This cache is used for metrics that would result in network/storage calls.
    type metricsCache struct {
    	dataUsageInfo       *cachevalue.Cache[DataUsageInfo]
    	esetHealthResult    *cachevalue.Cache[HealthResult]
    	driveMetrics        *cachevalue.Cache[storageMetrics]
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/pod_cache_test.go

    	found := false
    	snap := p.ReadCurrentPodSnapshot()
    	for k, v := range snap {
    		if k == "123" && v == (WorkloadInfo{}) {
    			found = true
    		}
    	}
    	if !found {
    		t.Fatalf("expected pod 123 to be in the cache")
    	}
    }
    
    func TestUpsertPodCacheWithLiveNetns(t *testing.T) {
    	p := newPodNetnsCache(openNsTestOverride)
    
    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{UID: "testUID"}}
    	ns := newFakeNsInode(inc(), 1)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  5. cmd/erasure.go

    					return
    				default:
    				}
    
    				// Load cache for bucket
    				cacheName := pathJoin(bucket.Name, dataUsageCacheName)
    				cache := dataUsageCache{}
    				scannerLogIf(ctx, cache.load(ctx, er, cacheName))
    				if cache.Info.Name == "" {
    					cache.Info.Name = bucket.Name
    				}
    				cache.Info.SkipHealing = healing
    				cache.Info.NextCycle = wantCycle
    				if cache.Info.Name != bucket.Name {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  6. cmd/metacache.go

    }
    
    // worthKeeping indicates if the cache by itself is worth keeping.
    func (m *metacache) worthKeeping() bool {
    	if m == nil {
    		return false
    	}
    	cache := m
    	switch {
    	case !cache.finished() && time.Since(cache.lastUpdate) > metacacheMaxRunningAge:
    		// Not finished and update for metacacheMaxRunningAge, discard it.
    		return false
    	case cache.finished() && time.Since(cache.lastHandout) > 5*metacacheMaxClientWait:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. cmd/metacache-bucket.go

    			b.debugf("cache %s not worth keeping", id)
    			remove[id] = struct{}{}
    			continue
    		}
    		if cache.id != id {
    			logger.Info("cache ID mismatch %s != %s", id, cache.id)
    			remove[id] = struct{}{}
    			continue
    		}
    		if cache.bucket != b.bucket {
    			logger.Info("cache bucket mismatch %s != %s", b.bucket, cache.bucket)
    			remove[id] = struct{}{}
    			continue
    		}
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  8. schema/schema.go

    	}
    
    	// Cache the Schema for performance,
    	// Use the modelType or modelType + schemaTable (if it present) as cache key.
    	var schemaCacheKey interface{}
    	if specialTableName != "" {
    		schemaCacheKey = fmt.Sprintf("%p-%s", modelType, specialTableName)
    	} else {
    		schemaCacheKey = modelType
    	}
    
    	// Load exist schema cache, return if exists
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Oct 10 06:50:29 GMT 2023
    - 13.7K bytes
    - Viewed (0)
  9. internal/kms/config.go

    	EnvKESServerCA         = "MINIO_KMS_KES_CAPATH"         // Path to file/directory containing CA certificates to verify the KES server certificate
    	EnvKESKeyCacheInterval = "MINIO_KMS_KEY_CACHE_INTERVAL" // Period between polls of the KES KMS Master Key cache, to prevent it from being unused and purged
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 07:42:50 GMT 2024
    - 2K bytes
    - Viewed (0)
  10. cmd/metacache-set.go

    	// Create indicates that the lister should not attempt to load an existing cache.
    	Create bool
    
    	// Include pure directories.
    	IncludeDirectories bool
    
    	// Transient is set if the cache is transient due to an error or being a reserved bucket.
    	// This means the cache metadata will not be persisted on disk.
    	// A transient result will never be returned from the cache so knowing the list id is required.
    	Transient bool
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
Back to top