Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for cacheSizes (0.19 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/testdata/encryption-configs/multiple-kms-providers-with-v2.yaml

    apiVersion: apiserver.config.k8s.io/v1
    resources:
      - resources:
          - secrets
        providers:
          - kms:
              name: kms-provider-1
              cachesize: 1000
              endpoint: unix:///@provider1.sock
          - kms:
              name: kms-provider-2
              cachesize: 1000
              endpoint: unix:///@provider2.sock
          - kms:
              apiVersion: v2
              name: kms-provider-3
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 17:03:18 UTC 2022
    - 467 bytes
    - Viewed (0)
  2. src/crypto/internal/boring/bcache/cache_test.go

    	// and there are cacheSize list heads, so we should be
    	// able to do 100 * cacheSize entries with no problem at all.
    	c = new(Cache[int, int32])
    	var barrier, wg sync.WaitGroup
    	const N = 100
    	barrier.Add(N)
    	wg.Add(N)
    	var lost int32
    	for i := 0; i < N; i++ {
    		go func() {
    			defer wg.Done()
    
    			m := make(map[*int]*int32)
    			for j := 0; j < cacheSize; j++ {
    				k, v := next[int](), next[int32]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/tasks/util/internal/CachingPatternSpecFactory.java

        private static final int INSTANCES_MAX_SIZE = 30000;
        private final HeapProportionalCacheSizer cacheSizer;
        private final Cache<SpecKey, Spec<FileTreeElement>> specInstanceCache;
    
        public CachingPatternSpecFactory() {
            cacheSizer = new HeapProportionalCacheSizer();
            specInstanceCache = CacheBuilder.newBuilder().maximumSize(cacheSizer.scaleCacheSize(INSTANCES_MAX_SIZE)).build();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 20 05:40:52 UTC 2018
    - 4.9K bytes
    - Viewed (0)
  4. src/crypto/internal/boring/bcache/cache.go

    func (c *Cache[K, V]) Register() {
    	registerCache(unsafe.Pointer(&c.ptable))
    }
    
    // cacheSize is the number of entries in the hash table.
    // The hash is the pointer value mod cacheSize, a prime.
    // Collisions are resolved by maintaining a linked list in each hash slot.
    const cacheSize = 1021
    
    // table returns a pointer to the current cache hash table,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  5. plugin/pkg/admission/eventratelimit/apis/eventratelimit/types.go

    	// allowance of burst queries.
    	//
    	// The default cache size is 4096.
    	//
    	// If limitType is 'server', then cacheSize is ignored.
    	// +optional
    	CacheSize int32 `json:"cacheSize,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 17:38:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  6. plugin/pkg/admission/eventratelimit/apis/eventratelimit/validation/validation.go

    			allErrs = append(allErrs, field.Invalid(idxPath.Child("qps"), limit.QPS, "must be positive"))
    		}
    		if limit.Type != eventratelimitapi.ServerLimitType {
    			if limit.CacheSize < 0 {
    				allErrs = append(allErrs, field.Invalid(idxPath.Child("cacheSize"), limit.CacheSize, "must not be negative"))
    			}
    		}
    	}
    	return allErrs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 17:38:03 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/metrics/metrics_test.go

    			} else {
    				validMetrics++
    			}
    		}
    	}
    	if validMetrics != cacheSize {
    		t.Fatalf("expected total valid metrics to be the same as cacheSize %d, got %d", cacheSize, validMetrics)
    	}
    }
    
    func TestRecordKeyIDFromStatus(t *testing.T) {
    	RegisterMetrics()
    
    	cacheSize = 3
    	registerLRUMetrics()
    	KeyIDHashStatusLastTimestampSeconds.Reset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 09 22:31:32 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  8. plugin/pkg/admission/eventratelimit/apis/eventratelimit/v1alpha1/zz_generated.conversion.go

    func autoConvert_v1alpha1_Limit_To_eventratelimit_Limit(in *Limit, out *eventratelimit.Limit, s conversion.Scope) error {
    	out.Type = eventratelimit.LimitType(in.Type)
    	out.QPS = in.QPS
    	out.Burst = in.Burst
    	out.CacheSize = in.CacheSize
    	return nil
    }
    
    // Convert_v1alpha1_Limit_To_eventratelimit_Limit is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/CacheResponse.java

    import okhttp3.Response;
    
    public final class CacheResponse {
      private final OkHttpClient client;
    
      public CacheResponse(File cacheDirectory) throws Exception {
        int cacheSize = 10 * 1024 * 1024; // 10 MiB
        Cache cache = new Cache(cacheDirectory, cacheSize);
    
        client = new OkHttpClient.Builder()
            .cache(cache)
            .build();
      }
    
      public void run() throws Exception {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 2.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			cacheSize := int32(1000)
    			for _, resource := range testCase.config.Resources {
    				for _, provider := range resource.Providers {
    					if provider.KMS != nil {
    						provider.KMS.CacheSize = &cacheSize
    					}
    				}
    			}
    
    			ctx, cancel := context.WithCancel(context.Background())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
Back to top