Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RemoveCache (0.09 sec)

  1. operator/pkg/cache/cache.go

    	objectCachesMu.RUnlock()
    
    	if objectCache != nil {
    		objectCache.Mu.Lock()
    		delete(objectCache.Cache, objHash)
    		objectCache.Mu.Unlock()
    	}
    }
    
    // RemoveCache removes the object Cache with the give name.
    func RemoveCache(name string) {
    	objectCachesMu.Lock()
    	defer objectCachesMu.Unlock()
    
    	delete(objectCaches, name)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 06 13:12:49 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. operator/pkg/cache/cache_test.go

    				},
    			},
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.desc, func(t *testing.T) {
    			for key, value := range tt.in {
    				objectCaches[key] = value
    			}
    			defer FlushObjectCaches()
    			RemoveCache(tt.objCacheRemovalKey)
    			if !reflect.DeepEqual(objectCaches, tt.expected) {
    				t.Errorf("%s: expected object cache %v, got %v\n", tt.desc, tt.expected, objectCaches)
    			}
    		})
    	}
    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. operator/pkg/controller/istiocontrolplane/istiocontrolplane_controller.go

    					host = restConfig.Host
    				}
    				for _, component := range name.AllComponentNames {
    					crHash := strings.Join([]string{newIOP.Name, newIOP.Namespace, string(component), host}, "-")
    					cache.RemoveCache(crHash)
    				}
    			}
    
    			if oldIOP.GetDeletionTimestamp() != newIOP.GetDeletionTimestamp() {
    				metrics.IncrementReconcileRequest("update_deletion_timestamp")
    				return true
    			}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top