Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 231 for newLru (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/main/java/org/codelibs/fess/helper/DuplicateHostHelper.java

        public String convert(final String url) {
            if (duplicateHostList == null) {
                init();
            }
    
            String newUrl = url;
            for (final DuplicateHost duplicateHost : duplicateHostList) {
                newUrl = duplicateHost.convert(newUrl);
            }
            return newUrl;
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/PathMappingHelper.java

            String newUrl = url;
            for (final PathMapping pathMapping : pathMappingList) {
                if (matchUserAgent(pathMapping)) {
                    newUrl = pathMapping.process(this, newUrl);
                }
            }
            if (logger.isDebugEnabled() && !StringUtil.equals(url, newUrl)) {
                logger.debug("replace: {} -> {}", url, newUrl);
            }
            return newUrl;
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. pkg/kubelet/lifecycle/handlers_test.go

    				}
    				if fakeHTTPDoer.url != expectedURL {
    					t.Errorf("url = %v; want %v", fakeHTTPDoer.url, tt.Expected.NewURL)
    				}
    			}
    
    			t.Run("consistent", func(t *testing.T) {
    				verify(t, tt.Expected.NewHeader, tt.Expected.NewURL)
    			})
    		})
    	}
    }
    
    func TestRunHandlerNil(t *testing.T) {
    	ctx := context.Background()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/client-services/src/test/groovy/org/gradle/internal/daemon/client/serialization/ClasspathInfererTest.groovy

                if (uri.startsWith("jar:")) {
                    int pos = uri.indexOf('!')
                    def newURI = uri.substring(0, pos + 2)
                    return new URI(newURI).toURL()
                } else {
                    def newURI = uri - resource
                    return new URI(newURI).toURL()
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. pkg/controller/deployment/progress_test.go

    			fake := fake.Clientset{}
    			dc := &DeploymentController{
    				client: &fake,
    			}
    
    			if test.newRS != nil {
    				test.allRSs = append(test.allRSs, test.newRS)
    			}
    			_, ctx := ktesting.NewTestContext(t)
    			err := dc.syncRolloutStatus(ctx, test.allRSs, test.newRS, test.d)
    			if err != nil {
    				t.Error(err)
    			}
    
    			newCond := util.GetDeploymentCondition(test.d.Status, test.conditionType)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/finalizer/crd_finalizer.go

    	newCRD := newObj.(*apiextensionsv1.CustomResourceDefinition)
    	// only queue deleted things that haven't been finalized by us
    	if newCRD.DeletionTimestamp.IsZero() || !apiextensionshelpers.CRDHasFinalizer(newCRD, apiextensionsv1.CustomResourceCleanupFinalizer) {
    		return
    	}
    
    	// always requeue resyncs just in case
    	if oldCRD.ResourceVersion == newCRD.ResourceVersion {
    		c.enqueue(newCRD)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top