Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for canStore (0.46 sec)

  1. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/service/BaseLocalBuildCacheServiceHandle.java

            return result.get();
        }
    
        @Override
        public boolean canStore() {
            return pushEnabled;
        }
    
        @Override
        public boolean maybeStore(BuildCacheKey key, File file) {
            if (canStore()) {
                storeInner(key, file);
                return true;
            }
            return false;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 04 08:25:00 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/service/LocalBuildCacheServiceHandle.java

        // TODO: what if this errors?
        Optional<BuildCacheLoadResult> maybeLoad(BuildCacheKey key, Function<File, BuildCacheLoadResult> unpackFunction);
    
        boolean canStore();
    
        /**
         * Stores the file to the local cache.
         *
         * If canStore() returns false, then this method will do nothing and will return false.
         *
         * Returns true if store was completed.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 16:23:39 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/service/RemoteBuildCacheServiceHandle.java

         */
        Optional<BuildCacheLoadResult> maybeLoad(BuildCacheKey key, File toFile, Function<File, BuildCacheLoadResult> unpackFunction);
    
        boolean canStore();
    
        /**
         * Stores the file to the cache.
         *
         * If canStore() returns false, then this method will do nothing and will return false.
         *
         * Returns true if store was completed.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/service/NullLocalBuildCacheServiceHandle.java

        @Override
        public Optional<BuildCacheLoadResult> maybeLoad(BuildCacheKey key, Function<File, BuildCacheLoadResult> unpackFunction) {
            return Optional.empty();
        }
    
        @Override
        public boolean canStore() {
            return false;
        }
    
        @Override
        public boolean maybeStore(BuildCacheKey key, File file) {
            return false;
        }
    
        @Override
        public void close() {
    
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/service/BaseRemoteBuildCacheServiceHandle.java

            }
            return Optional.empty();
        }
    
        @Override
        public boolean canStore() {
            return pushEnabled && !disabled;
        }
    
        @Override
        public final boolean maybeStore(BuildCacheKey key, File file) {
            if (!canStore()) {
                return false;
            }
            String description = Operation.STORE.describe(key, role);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 14:27:21 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/service/NullRemoteBuildCacheServiceHandle.java

        public Optional<BuildCacheLoadResult> maybeLoad(BuildCacheKey key, File toFile, Function<File, BuildCacheLoadResult> unpackFunction) {
            return Optional.empty();
        }
    
        @Override
        public boolean canStore() {
            return false;
        }
    
        @Override
        public boolean maybeStore(BuildCacheKey key, File file) {
            return false;
        }
    
        @Override
        public void close() {
    
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/DefaultBuildCacheController.java

            return result.get();
        }
    
        @Override
        public void store(BuildCacheKey key, CacheableEntity entity, Map<String, FileSystemSnapshot> snapshots, Duration executionTime) {
            if (!local.canStore() && !remote.canStore()) {
                return;
            }
            tmp.withTempFile(((BuildCacheKeyInternal) key).getHashCodeInternal(), file -> {
                packExecutor.pack(file, key, entity, snapshots, executionTime);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 08:29:47 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top