Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for withInitialLockMode (0.28 sec)

  1. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheRepository.kt

        private
        val cache = cacheBuilderFactory
            .createCrossVersionCacheBuilder("configuration-cache")
            .withDisplayName("Configuration Cache")
            .withInitialLockMode(FileLockManager.LockMode.OnDemand) // Don't need to lock anything until we use the caches
            .withLruCacheCleanup()
            .open()
    
        private
        fun CacheBuilder.withLruCacheCleanup(): CacheBuilder =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/process/internal/worker/child/WorkerProcessClassPathProvider.java

                    if (workerClassPath == null) {
                        PersistentCache workerClassPathCache = cacheBuilderFactory
                            .createCacheBuilder("workerMain")
                            .withInitialLockMode(FileLockManager.LockMode.Exclusive)
                            .withInitializer(new CacheInitializer())
                            .open();
                        try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy

                        final PersistentCache zincCache = cacheBuilderFactory.createCacheBuilder("zinc-0.3.15")
                                .withDisplayName("Zinc 0.3.15 compiler cache")
                                .withInitialLockMode(FileLockManager.LockMode.Exclusive)
                                .open()
                        println "Starting work..."
                        try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/internal/classpath/DefaultCachedClasspathTransformerTest.groovy

        def cache = new TestInMemoryCacheFactory().open(cachedDir, "jars")
        def cacheBuilder = Stub(CacheBuilder) {
            open() >> cache
            withDisplayName(_) >> { cacheBuilder }
            withInitialLockMode(_) >> { cacheBuilder }
            withCleanupStrategy(_) >> { cacheBuilder }
        }
        def cacheBuilderFactory = Stub(GlobalScopedCacheBuilderFactory) {
            createCrossVersionCacheBuilder(_) >> cacheBuilder
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.8K bytes
    - Viewed (0)
Back to top