Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 43 for CacheKey (0.35 sec)

  1. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/caching/impl/DefaultCachingStateFactory.java

        }
    
        @Override
        public final CachingState createCachingState(BeforeExecutionState beforeExecutionState, HashCode cacheKey, ImmutableList<CachingDisabledReason> cachingDisabledReasons) {
            if (cachingDisabledReasons.isEmpty()) {
                return CachingState.enabled(new DefaultBuildCacheKey(cacheKey), beforeExecutionState);
            } else {
                cachingDisabledReasons.forEach(reason ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. pkg/kubelet/clustertrustbundle/clustertrustbundle_manager.go

    	}
    
    	cacheKey := cacheKeyType{signerName: signerName, labelSelector: selector.String()}
    
    	if lsLen := len(cacheKey.labelSelector); lsLen > maxLabelSelectorLength {
    		return nil, fmt.Errorf("label selector length (%d) is larger than %d", lsLen, maxLabelSelectorLength)
    	}
    
    	if cachedAnchors, ok := m.normalizationCache.Get(cacheKey); ok {
    		return cachedAnchors.([]byte), nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/cache/ModelSchemaCache.java

            }
        }
    
        public <T> void set(ModelType<T> type, ModelSchema<T> schema) {
            WeakClassSet cacheKey = WeakClassSet.of(type);
            Map<ModelType<?>, ModelSchema<?>> typeCache = cache.get(cacheKey);
            if (typeCache == null) {
                typeCache = new HashMap<>();
                cache.put(cacheKey, typeCache);
            }
            typeCache.put(type, schema);
        }
    
        public long size() {
            cleanUp();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildCacheOperationFixtures.groovy

            def packOperations = getPackOperationsForTask(taskPath)
            return packOperations.empty ? null : packOperations[0].details["cacheKey"]
        }
    
        String getCacheKeyForTask(String taskPath) {
            def cacheKey = getCacheKeyForTaskOrNull(taskPath)
            assert cacheKey != null
            return cacheKey
        }
    
        void assertStoredToLocalCacheForTask(String taskPath) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskOutputIntegrationTest.groovy

            metadata.gradleVersion == GradleVersion.current().version
        }
    
        private Properties readMetadata() {
            def cacheKey = cacheOperations.getCacheKeyForTask(":compileJava")
            assert localCache.hasCacheEntry(cacheKey)
            def cacheEntry = localCache.getCacheEntry(cacheKey)
    
            // Must rename to "*.tgz" for unpacking to work
            def tgzCacheEntry = temporaryFolder.file("cache.tgz")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheRepository.kt

        private val fileAccessTimeJournal: FileAccessTimeJournal,
        private val fileSystem: FileSystem
    ) : Stoppable {
        fun forKey(cacheKey: String): ConfigurationCacheStateStore {
            return StoreImpl(cache.baseDirFor(cacheKey))
        }
    
        abstract class Layout {
            abstract fun fileForRead(stateType: StateType): ConfigurationCacheStateFile
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache-example-client/src/main/java/org/gradle/caching/example/ExampleBuildCacheClient.java

            buildCacheController.store(
                cacheKey,
                sandboxEntity,
                ImmutableMap.of("output", producedOutputSnapshot),
                Duration.ofSeconds(10));
    
            // Load the entity from the cache
            BuildCacheLoadResult loadResult = buildCacheController.load(cacheKey, targetEntity)
                .orElseThrow(() -> new RuntimeException("Should have been a hit"));
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 19:35:22 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/BuildCacheController.java

     */
    @ServiceScope(Scope.Gradle.class)
    public interface BuildCacheController extends Closeable {
    
        boolean isEnabled();
    
        Optional<BuildCacheLoadResult> load(BuildCacheKey cacheKey, CacheableEntity cacheableEntity);
    
        void store(BuildCacheKey cacheKey, CacheableEntity entity, Map<String, FileSystemSnapshot> snapshots, Duration executionTime);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:20 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/NoOpBuildCacheController.java

        public boolean isEnabled() {
            return false;
        }
    
        @Override
        public Optional<BuildCacheLoadResult> load(BuildCacheKey cacheKey, CacheableEntity cacheableEntity) {
            return Optional.empty();
        }
    
        @Override
        public void store(BuildCacheKey cacheKey, CacheableEntity entity, Map<String, FileSystemSnapshot> snapshots, Duration executionTime) {
    
        }
    
        @Override
        public void close() {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:26 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. pkg/test/util/yml/cache_test.go

    	g := NewWithT(t)
    	d := t.TempDir()
    	t.Logf("Test Dir: %q", d)
    
    	c := NewCache(d)
    
    	keys, err := c.Apply(gateway)
    	g.Expect(err).To(BeNil())
    	g.Expect(keys).To(HaveLen(1))
    	expected := CacheKey{
    		group:     "networking.istio.io",
    		kind:      "Gateway",
    		namespace: "",
    		name:      "some-ingress",
    	}
    	g.Expect(keys[0]).To(Equal(expected))
    	key1 := keys[0]
    
    	file := c.GetFileFor(keys[0])
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top