Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for DefaultPersistentDirectoryStore (0.37 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultPersistentDirectoryStore.java

    import java.io.File;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.function.Supplier;
    
    import static org.gradle.cache.internal.CacheInitializationAction.NO_INIT_REQUIRED;
    
    public class DefaultPersistentDirectoryStore implements ReferencablePersistentCache {
    
        public static final int CLEANUP_INTERVAL_IN_HOURS = 24;
    
        private final File dir;
        private final LockOptions lockOptions;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 19:10:33 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultPersistentDirectoryStoreTest.groovy

                def context = Stub(BuildOperationContext)
                operation.run(context)
            }
        }
    
        @Subject @AutoCleanup
        def store = new DefaultPersistentDirectoryStore(cacheDir, "<display>", mode(OnDemand), cacheCleanup, lockManager, Mock(ExecutorFactory), buildOperationRunner)
    
        def "has useful toString() implementation"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:40:49 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultCacheFactoryTest.groovy

            def implementation
    
            when:
            factory.open(tmpDir.testDirectory, null, [prop: 'value'], mode(Exclusive), null, null)
    
            then:
            1 * opened.accept(_) >> { DefaultPersistentDirectoryStore s -> implementation = s }
            0 * opened._
    
            when:
            factory.close()
    
            then:
            1 * closed.accept(implementation)
            0 * _
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/local/internal/AbstractBuildCacheCleanupIntegrationTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.caching.local.internal
    
    import org.gradle.cache.internal.DefaultPersistentDirectoryStore
    import org.gradle.cache.internal.GradleUserHomeCleanupFixture
    import org.gradle.integtests.fixtures.AbstractIntegrationSpec
    import org.gradle.integtests.fixtures.BuildOperationsFixture
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:53:17 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultPersistentDirectoryStoreConcurrencyTest.groovy

                operation.run(context)
            }
        }
    
        @Issue("GRADLE-3206")
        def "can create new caches and access them in parallel"() {
            def store = new DefaultPersistentDirectoryStore(cacheDir, "<display>", mode(OnDemand), null, lockManager, executorFactory, buildOperationRunner)
            store.open()
    
            when:
            async {
                200.times { index ->
                    start {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultPersistentDirectoryCache.java

    import java.io.InputStream;
    import java.io.UncheckedIOException;
    import java.util.Map;
    import java.util.Properties;
    import java.util.function.Consumer;
    
    public class DefaultPersistentDirectoryCache extends DefaultPersistentDirectoryStore implements ReferencablePersistentCache {
    
        private static final Logger LOGGER = LoggerFactory.getLogger(DefaultPersistentDirectoryCache.class);
    
        private final Properties properties = new Properties();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 19:20:15 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheFactory.java

                } else {
                    cache = new DefaultPersistentDirectoryStore(cacheDir, displayName, lockOptions, cacheCleanupStrategy, lockManager, executorFactory, buildOperationRunner);
                }
                cache.open();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 15:54:23 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top