Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for CacheKey (0.31 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/TestBuildCache.groovy

        }
    
        void deleteCacheEntry(String cacheKey) {
            def entry = getTestFileCacheEntry(cacheKey)
            if (entry.file.exists()) {
                entry.file.deleteDir()
            }
        }
    
        boolean hasCacheEntry(String cacheKey) {
            return getTestFileCacheEntry(cacheKey).file.exists()
        }
    
        TestCacheEntry getCacheEntry(String cacheKey) {
            def cacheEntry = getTestFileCacheEntry(cacheKey)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskArchiveErrorIntegrationTest.groovy

            """
            succeeds("customTask")
    
            then:
            def cacheKey = cacheOperations.getCacheKeyForTask(":customTask")
            remoteCache.hasCacheEntry(cacheKey)
    
            when:
            def cacheEntry = remoteCache.getCacheEntry(cacheKey)
            cacheEntry.text = "corrupt"
            localCache.deleteCacheEntry(cacheKey)
    
            then:
            fails("clean", "customTask")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginDescriptorCache.java

        public Key createKey(Plugin plugin, List<RemoteRepository> repositories, RepositorySystemSession session) {
            return keys.computeIfAbsent(new CacheKey(plugin, repositories, session), k -> k);
        }
    
        public PluginDescriptor get(Key cacheKey) {
            return clone(descriptors.get(cacheKey));
        }
    
        @Override
        public PluginDescriptor get(Key key, PluginDescriptorSupplier supplier)
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:49 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/instance/ManagedProxyFactory.java

                    return false;
                }
                CacheKey cacheKey = (CacheKey) o;
                return Objects.equal(backingStateType, cacheKey.backingStateType)
                    && Objects.equal(schema, cacheKey.schema)
                    && Objects.equal(structBindings.getDelegateSchema(), cacheKey.structBindings.getDelegateSchema());
            }
    
            @Override
            public int hashCode() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/DefaultPreviousExecutionState.java

        private final OriginMetadata originMetadata;
        private final boolean successful;
        private final HashCode cacheKey;
    
        public DefaultPreviousExecutionState(
            OriginMetadata originMetadata,
            HashCode cacheKey,
            ImplementationSnapshot implementation,
            ImmutableList<ImplementationSnapshot> additionalImplementations,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 17:44:52 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/StoreExecutionStateStepTest.groovy

    class StoreExecutionStateStepTest extends StepSpec<IncrementalCachingContext> implements SnapshotterFixture {
        def executionHistoryStore = Mock(ExecutionHistoryStore)
        def cacheKey = TestHashCodes.hashCodeFrom(1234)
    
        def originMetadata = Mock(OriginMetadata)
        def beforeExecutionState = Stub(BeforeExecutionState) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 08:29:47 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/BuildCacheLocalCacheIntegrationTest.groovy

            then:
            executed()
            localCache.empty
            def cacheKey = cacheOperations.getCacheKeyForTask(":t")
            remoteCache.hasCacheEntry(cacheKey)
    
            when:
            settingsFile << """
                buildCache.local.push = true
            """
            execute()
    
            then:
            cached()
            localCache.hasCacheEntry(cacheKey)
    
            when:
            settingsFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top