- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 418 for newLru (0.12 sec)
-
pilot/pkg/model/typed_xds_cache.go
evictedOnClear bool } var _ typedXdsCache[uint64] = &lruCache[uint64]{} func newLru[K comparable](evictCallback simplelru.EvictCallback[K, cacheValue]) simplelru.LRUCache[K, cacheValue] { sz := features.XDSCacheMaxSize if sz <= 0 { sz = 20000 } l, err := simplelru.NewLRU(sz, evictCallback) if err != nil { panic(fmt.Errorf("invalid lru configuration: %v", err)) } return l }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 05:26:03 UTC 2024 - 11K bytes - Viewed (0) -
pkg/cache/cache.go
// // Different caches can have different eviction policies which determine // when and how entries are automatically removed from the cache. // // Using a cache is very simple: // // c := NewLRU(5*time.Second, // default per-entry ttl // 5*time.Second, // eviction interval // 500) // max # of entries tracked // c.Set("foo", "bar") // add an entry
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 3.9K bytes - Viewed (0) -
cmd/jwt.go
errMalformedAuth = errors.New("Malformed authentication input") ) type cacheKey struct { accessKey, secretKey, audience string } var cacheLRU = expirable.NewLRU[cacheKey, string](1000, nil, 15*time.Second) func authenticateNode(accessKey, secretKey, audience string) (string, error) { claims := xjwt.NewStandardClaims() claims.SetExpiry(UTCNow().Add(defaultInterNodeJWTExpiry))
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.4K bytes - Viewed (0) -
build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateReleasedVersionsTest.groovy
'4.2' | 1 '4.2' | -1 } def "newer rcs are stored"() { def referenceBuildTime = System.currentTimeMillis() - DAYS.toMillis(10) def oldRc = releasedVersion('4.3-rc-2', referenceBuildTime) def snapshotVersion = snapshot('4.3', referenceBuildTime) def versions = releasedVersions(snapshotVersion, oldRc, []) def newRc = releasedVersion(version, referenceBuildTime + buildTime)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 5.4K bytes - Viewed (0) -
pkg/controller/deployment/sync.go
Template: newRSTemplate, }, } allRSs := append(oldRSs, &newRS) newReplicasCount, err := deploymentutil.NewRSNewReplicas(d, allRSs, &newRS) if err != nil { return nil, err } *(newRS.Spec.Replicas) = newReplicasCount // Set new replica set's annotation deploymentutil.SetNewReplicaSetAnnotations(ctx, d, &newRS, newRevision, false, maxRevHistoryLengthInChars)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 05 23:39:52 UTC 2023 - 24.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/status/naming_controller_test.go
name: "first resource", in: newCRD("alfa.bravo.com").NewOrDie(), existing: []*apiextensionsv1.CustomResourceDefinition{}, expectedNames: apiextensionsv1.CustomResourceDefinitionNames{ Plural: "alfa", }, expectedNameConflictCondition: acceptedCondition, expectedEstablishedCondition: installingCondition, }, { name: "different groups",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 03 16:49:27 UTC 2019 - 15.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy.go
if !apiequality.Semantic.DeepEqual(oldCRD.Spec, newCRD.Spec) { newCRD.Generation = oldCRD.Generation + 1 } for _, v := range newCRD.Spec.Versions { if v.Storage { if !apiextensions.IsStoredVersion(newCRD, v.Name) { newCRD.Status.StoredVersions = append(newCRD.Status.StoredVersions, v.Name) } break } } dropDisabledFields(newCRD, oldCRD) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 10.3K bytes - Viewed (0) -
src/cmd/fix/main.go
// output of the printer run on a mangled AST generated by a fixer. newSrc, err = gofmtFile(newFile) if err != nil { return err } if *doDiff { os.Stdout.Write(diff.Diff(filename, src, "fixed/"+filename, newSrc)) return nil } if useStdin { os.Stdout.Write(newSrc) return nil } return os.WriteFile(f.Name(), newSrc, 0) } func gofmt(n any) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/DuplicateHostHelper.java
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedmanager.go
newLiveObj, newManaged, newErr := f.fieldManager.Apply(liveObj, newObj, managed, manager, force) // Upgrade the client-side apply annotation only from kubectl server-side-apply. // To opt-out of this behavior, users may specify a different field manager. if manager != "kubectl" { return newLiveObj, newManaged, newErr } // Check if we have conflicts if newErr == nil { return newLiveObj, newManaged, newErr }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 5.9K bytes - Viewed (0)