Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for getMCache (0.15 sec)

  1. maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelCache.java

        @SuppressWarnings("unchecked")
        public static ModelCache newInstance(RepositorySystemSession session) {
            ConcurrentHashMap<Object, Supplier<?>> cache;
            RepositoryCache repositoryCache = session.getCache();
            if (repositoryCache == null) {
                cache = new ConcurrentHashMap<>();
            } else {
                cache = (ConcurrentHashMap<Object, Supplier<?>>)
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jan 22 17:27:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. operator/pkg/cache/cache_test.go

    			},
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.desc, func(t *testing.T) {
    			defer FlushObjectCaches()
    			for key, value := range tt.in {
    				objectCaches[key] = value
    			}
    			if gotCache := GetCache(tt.key); !reflect.DeepEqual(*gotCache, tt.want) {
    				t.Errorf("%s: expected cache %v, got cache %v\n", tt.desc, tt.want, *gotCache)
    			}
    		})
    	}
    }
    
    func TestRemoveObject(t *testing.T) {
    	tests := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 20 18:46:12 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultModelCache.java

        public static ModelCache newInstance(RepositorySystemSession session, boolean anew) {
            ConcurrentHashMap<Object, Supplier<?>> cache;
            RepositoryCache repositoryCache = session != null ? session.getCache() : null;
            if (repositoryCache == null) {
                return new DefaultModelCache(new ConcurrentHashMap<>());
            } else {
                if (anew) {
                    cache = new ConcurrentHashMap<>();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 15:10:38 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. operator/pkg/helmreconciler/apply.go

    	scope.Infof("Processing resources from manifest: %s for CR %s", cname, crHash)
    	allObjects, err := object.ParseK8sObjectsFromYAMLManifest(manifest.Content)
    	if err != nil {
    		return result, err
    	}
    
    	objectCache := cache.GetCache(crHash)
    
    	// Ensure that for a given CR crHash only one control loop uses the per-crHash cache at any time.
    	objectCache.Mu.Lock()
    	defer objectCache.Mu.Unlock()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top