Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 139 for doCache (0.14 sec)

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

            if (value == null) {
                value = factory.apply(key);
                doCache(key, value);
            }
    
            return value;
        }
    
        @Override
        public V getIfPresent(K key) {
            return doGet(key);
        }
    
        @Override
        public void put(K key, V value) {
            doCache(key, value);
        }
    
        abstract protected <T extends K> V doGet(T key);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/MapBackedCache.java

            this.map = map;
        }
    
        @Override
        protected <T extends K> V doGet(T key) {
            return map.get(key);
        }
    
        @Override
        protected <T extends K, N extends V> void doCache(T key, N value) {
            map.put(key, value);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue59709.dir/dcache.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package dcache
    
    import (
    	"./aconfig"
    	"./bresource"
    	"./cmem"
    )
    
    type Module struct {
    	cfg  *aconfig.Config
    	err  error
    	last any
    }
    
    //go:noinline
    func TD() {
    }
    
    func (m *Module) Configure(x string) error {
    	if m.err != nil {
    		return m.err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 21:04:28 UTC 2023
    - 626 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/clean_cache_n.txt

    # We're testing cache behavior, so start with a clean GOCACHE.
    env GOCACHE=$WORK/cache
    
    # Build something so that the cache gets populates
    go build main.go
    
    # Check that cache contains directories before running
    exists $GOCACHE/00
    
    # Run go clean -cache -n and ensure that directories weren't deleted
    go clean -cache -n
    exists $GOCACHE/00
    
    # Re-run go clean cache without the -n flag go ensure that directories were properly removed
    go clean -cache
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:22:49 UTC 2022
    - 637 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_fuzz_cache.txt

    [!fuzz-instrumented] skip
    
    [short] skip
    env GOCACHE=$WORK/cache
    
    # Fuzz cache should not exist after a regular test run.
    go test .
    exists $GOCACHE
    ! exists $GOCACHE/fuzz
    
    # Fuzzing should write interesting values to the cache.
    go test -fuzz=FuzzY -fuzztime=100x .
    go run ./contains_files $GOCACHE/fuzz/example.com/y/FuzzY
    
    # 'go clean -cache' should not delete the fuzz cache.
    go clean -cache
    exists $GOCACHE/fuzz
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:22:49 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/cache_unix.txt

    mkdir $WORK/gocache
    mkdir $WORK/xdg
    mkdir $WORK/home
    
    # Set GOCACHE, XDG_CACHE_HOME, and HOME.
    env GOCACHE=$WORK/gocache
    env XDG_CACHE_HOME=$WORK/xdg
    env HOME=$WORK/home
    
    # With all three set, we should prefer GOCACHE.
    go env GOCACHE
    stdout $WORK'/gocache$'
    
    # Without GOCACHE, we should prefer XDG_CACHE_HOME over HOME.
    env GOCACHE=
    go env GOCACHE
    stdout $WORK'/xdg/go-build$$'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 17:09:07 UTC 2023
    - 1010 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/build_nocache.txt

    # If none of the variables we use to locate GOCACHE are set, the cache is off
    # and we cannot build.
    env GOCACHE=
    env XDG_CACHE_HOME=
    env HOME=
    [GOOS:plan9] env home=
    [GOOS:windows] env LocalAppData=
    ! go build -o triv triv.go
    stderr 'build cache is required, but could not be located: GOCACHE is not defined and .*'
    
    # If GOCACHE is set but is not an absolute path, and we cannot build.
    env GOCACHE=test
    ! go build -o triv triv.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/build_cache_pgo.txt

    [short] skip
    
    # Set up fresh GOCACHE.
    env GOCACHE=$WORK/gocache
    mkdir $GOCACHE
    
    # Building trivial non-main package should run preprofile the first time.
    go build -x -pgo=default.pgo lib.go
    stderr 'preprofile.*default\.pgo'
    
    # ... but not again ...
    go build -x -pgo=default.pgo lib.go
    ! stderr 'preprofile.*default\.pgo'
    
    # ... unless we use -a.
    go build -a -x -pgo=default.pgo lib.go
    stderr 'preprofile.*default\.pgo'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 18:28:25 UTC 2024
    - 927 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/link_matching_actionid.txt

    symlink $GOROOT -> $TESTGO_GOROOT
    
    # Set up fresh GOCACHE
    env GOCACHE=$WORK/gocache1
    mkdir $GOCACHE
    
    # Build a simple binary
    go build -o binary1 -trimpath -x main.go
    
    # Now repeat the same process with the compiler at a different local path
    env GOROOT=$WORK/goroot2
    symlink $GOROOT -> $TESTGO_GOROOT
    
    env GOCACHE=$WORK/gocache2
    mkdir $GOCACHE
    
    go build -o binary2 -trimpath -x main.go
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 14:18:11 UTC 2020
    - 835 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/build_cache_compile.txt

    env GO111MODULE=off
    [short] skip
    
    # Set up fresh GOCACHE.
    env GOCACHE=$WORK/gocache
    mkdir $GOCACHE
    
    # Building trivial non-main package should run compiler the first time.
    go build -x lib.go
    stderr '(compile|gccgo)( |\.exe).*lib\.go'
    
    # ... but not again ...
    go build -x lib.go
    ! stderr '(compile|gccgo)( |\.exe).*lib\.go'
    
    # ... unless we use -a.
    go build -a -x lib.go
    stderr '(compile|gccgo)( |\.exe)'
    
    -- lib.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 03:25:01 UTC 2019
    - 430 bytes
    - Viewed (0)
Back to top