Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,422 for delete1 (0.17 sec)

  1. subprojects/core/src/test/groovy/org/gradle/cache/internal/VersionSpecificCacheCleanupActionTest.groovy

        def currentCacheDir = createVersionSpecificCacheDir(currentVersion, NOT_USED_WITHIN_30_DAYS)
        def progressMonitor = Mock(CleanupProgressMonitor)
        def deleter = TestFiles.deleter()
    
        @Subject def cleanupAction = new VersionSpecificCacheCleanupAction(cachesDir, daysAgo(30), daysAgo(7), deleter, CleanupFrequency.DAILY)
    
        def "cleans up unused version-specific cache directories"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 08 17:27:30 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/cache/expiring.go

    		expiry:     expiry,
    		generation: c.generation,
    	})
    }
    
    // Delete deletes an entry in the map.
    func (c *Expiring) Delete(key interface{}) {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	c.del(key, 0)
    }
    
    // del deletes the entry for the given key. The generation argument is the
    // generation of the entry that should be deleted. If the generation has been
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 22 15:51:23 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. platforms/software/platform-base/src/main/java/org/gradle/language/base/plugins/LifecycleBasePlugin.java

            final BuildOutputCleanupRegistry buildOutputCleanupRegistry = project.getServices().get(BuildOutputCleanupRegistry.class);
            buildOutputCleanupRegistry.registerOutputs(buildDir);
    
            final Provider<Delete> clean = project.getTasks().register(CLEAN_TASK_NAME, Delete.class, cleanTask -> {
                cleanTask.setDescription("Deletes the build directory.");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. pkg/kube/namespace/filter.go

    		DeleteFunc: func(ns *corev1.Namespace) {
    			f.lock.Lock()
    			defer f.lock.Unlock()
    			// No need to notify handlers for deletes. The namespace was deleted, so the object will be as well (and a delete could not de-select).
    			// Note that specifically for the edge case of a Namespace watcher that is filtering, this will ignore deletes we should
    			// otherwise send.
    			// See kclient.applyDynamicFilter for rationale.
    			f.namespaceDeletedLocked(ns.ObjectMeta)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 17:12:52 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. cmd/metacache-manager.go

    	m.buckets[bucket] = b
    	return b
    }
    
    // deleteBucketCache will delete the bucket cache if it exists.
    func (m *metacacheManager) deleteBucketCache(bucket string) {
    	m.init.Do(m.initManager)
    	m.mu.Lock()
    	b, ok := m.buckets[bucket]
    	if !ok {
    		m.mu.Unlock()
    		return
    	}
    	delete(m.buckets, bucket)
    	m.mu.Unlock()
    
    	// Since deletes may take some time we try to do it without
    	// holding lock to m all the time.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  6. pkg/volume/util/recyclerclient/recycler_client.go

    	// In all cases delete the recycler pod and log its result.
    	klog.V(2).Infof("deleting recycler pod %s/%s", pod.Namespace, pod.Name)
    	deleteErr := recyclerClient.DeletePod(pod.Name, pod.Namespace)
    	if deleteErr != nil {
    		klog.Errorf("failed to delete recycler pod %s/%s: %v", pod.Namespace, pod.Name, err)
    	}
    
    	// Returning recycler error is preferred, the pod will be deleted again on
    	// the next retry.
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  7. pkg/kubelet/util/manager/manager.go

    	// in the implementations and effectively treated as refcounted.
    	AddReference(namespace, name string, referencedFrom types.UID)
    	// DeleteReference deletes a reference from referencedFrom to the object from the store.
    	// Note that object should be deleted only when there was a
    	// corresponding Delete call for each of Add calls (effectively
    	// when refcount of every referenceFrom was reduced to zero).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 02:22:52 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. tests/soft_delete_test.go

    		t.Errorf("Count soft deleted record, expects: %v, got: %v", 1, count)
    	}
    
    	if DB.Model(&User{}).Select("age").Where("name = ?", user.Name).Scan(&age).Error != nil || age != user.Age {
    		t.Errorf("Age soft deleted record, expects: %v, got: %v", 0, age)
    	}
    
    	if err := DB.Delete(&user).Error; err != nil {
    		t.Fatalf("No error should happen when soft delete user, but got %v", err)
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 01 06:40:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. platforms/software/platform-base/src/main/java/org/gradle/language/base/internal/tasks/StaleOutputCleaner.java

         *
         * Returns {code true} if any file or directory was deleted, {@code false} otherwise.
         */
        @CheckReturnValue
        public static boolean cleanOutputs(Deleter deleter, Iterable<File> filesToDelete, File directoryToClean) {
            return cleanOutputs(deleter, filesToDelete, ImmutableSet.of(directoryToClean));
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/cycle_state.go

    // See CycleState for notes on concurrency.
    func (c *CycleState) Write(key StateKey, val StateData) {
    	c.storage.Store(key, val)
    }
    
    // Delete deletes data with the given key from CycleState.
    //
    // See CycleState for notes on concurrency.
    func (c *CycleState) Delete(key StateKey) {
    	c.storage.Delete(key)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 06:48:20 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top