Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for CacheKey (0.13 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/caching/MapBasedBuildCacheServiceTest.groovy

        def hashCode = "123456"
        def cacheKey = Stub(BuildCacheKey) {
            getHashCode() >> hashCode
        }
        def reader = Mock(BuildCacheEntryReader)
        def writer = Mock(BuildCacheEntryWriter)
        def data = [1, 2, 3] as byte[]
    
        def "can read from map"() {
            when:
            def found = cache.load(cacheKey, reader)
            then:
            found
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/AbstractResolveCachingStateStep.java

        }
    
        private void logCacheKey(BuildCacheKey cacheKey, UnitOfWork work) {
            if (emitDebugLogging) {
                LOGGER.warn("Build cache key for {} is {}", work.getDisplayName(), cacheKey.getHashCode());
            } else {
                LOGGER.info("Build cache key for {} is {}", work.getDisplayName(), cacheKey.getHashCode());
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 08:29:47 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveIncrementalCachingStateStepTest.groovy

            _ * previousExecutionState.cacheKey >> cacheKey
            _ * context.validationProblems >> ImmutableList.of()
            1 * delegate.execute(work, { CachingContext context ->
                def buildCacheKey = context.cachingState.cacheKeyCalculatedState.get().key
                buildCacheKey.hashCode == cacheKey.toString()
            }) >> delegateResult
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 08:29:47 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. maven-compat/src/test/java/org/apache/maven/project/artifact/DefaultMavenMetadataCacheTest.java

            assertNotSame(lr1, lr2);
            assertNotSame(rr1, rr2);
    
            DefaultMavenMetadataCache.CacheKey k1 =
                    new DefaultMavenMetadataCache.CacheKey(a1, false, lr1, Collections.singletonList(rr1));
            DefaultMavenMetadataCache.CacheKey k2 =
                    new DefaultMavenMetadataCache.CacheKey(a2, false, lr2, Collections.singletonList(rr2));
    
            assertEquals(k1.hashCode(), k2.hashCode());
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/project/artifact/DefaultProjectArtifactsCache.java

            @Override
            public boolean equals(Object o) {
                if (o == this) {
                    return true;
                }
                if (!(o instanceof CacheKey)) {
                    return false;
                }
                CacheKey that = (CacheKey) o;
                return Objects.equals(groupId, that.groupId)
                        && Objects.equals(artifactId, that.artifactId)
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:49 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/StoreExecutionStateStep.java

            private final ExecutionOutputState afterExecutionOutputState;
            private final HashCode cacheKey;
    
            public DefaultAfterExecutionState(HashCode cacheKey, BeforeExecutionState beforeExecutionState, ExecutionOutputState afterExecutionOutputState) {
                this.cacheKey = cacheKey;
                this.beforeExecutionState = beforeExecutionState;
                this.afterExecutionOutputState = afterExecutionOutputState;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 08:29:47 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top