- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for ReadCache (0.15 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc
std::vector<char> out; TF_EXPECT_OK(ReadCache(&cache1, want_filename, want_offset, want_n, &out)); EXPECT_EQ(calls, 1); TF_EXPECT_OK(ReadCache(&cache2, want_filename, want_offset, want_n, &out)); EXPECT_EQ(calls, 2); TF_EXPECT_OK(ReadCache(&cache3, want_filename, want_offset, want_n, &out)); EXPECT_EQ(calls, 3); TF_EXPECT_OK(ReadCache(&cache4, want_filename, want_offset, want_n, &out));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 15 03:16:57 UTC 2021 - 23.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/modulecache/artifacts/TwoStageArtifactsCacheTest.groovy
def timeProvider = Stub(BuildCommencedTimeProvider) def readCache = Mock(AbstractArtifactsCache) def writeCache = Mock(AbstractArtifactsCache) def key = Stub(ArtifactsAtRepositoryKey) @Subject TwoStageArtifactsCache twoStageArtifactsCache = new TwoStageArtifactsCache(timeProvider, readCache, writeCache) def "reads first in write cache then in read cache"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/modulecache/TwoStageModuleMetadataCacheTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/modulecache/artifacts/TwoStageModuleArtifactCacheTest.groovy
File artifact = Stub(File) HashCode hashCode = Stub(HashCode) def key = Stub(ArtifactAtRepositoryKey) def readCache = Mock(ModuleArtifactCache) def writeCache = Mock(ModuleArtifactCache) @Subject def twoStageCache = new TwoStageModuleArtifactCache(readOnlyPath, readCache, writeCache) def "storing delegates to the write index"() { when: twoStageCache.store(key, artifact, hashCode)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/modulecache/dynamicversions/TwoStageModuleVersionsCacheTest.groovy
def timeProvider = Stub(BuildCommencedTimeProvider) def readCache = Mock(AbstractModuleVersionsCache) def writeCache = Mock(AbstractModuleVersionsCache) def key = Stub(ModuleAtRepositoryKey) def entry = Stub(ModuleVersionsCacheEntry) @Subject def twoStageCache = new TwoStageModuleVersionsCache(timeProvider, readCache, writeCache) def "writing delegates to write cache"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_download_concurrent_read.txt
cmd.Stderr = os.Stderr cmd.Env = append(os.Environ(), "GOPATH="+gopath) return cmd.Run() } // readCache repeatedly globs for go.mod files in the given cache, then opens // those files for reading. When the done chan is closed, readCache closes // files and returns. func readCache(gopath string, done <-chan struct{}) { files := make(map[string]*os.File) defer func() { for _, f := range files { f.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 2.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/sumdb/client.go
WriteConfig(file string, old, new []byte) error // ReadCache reads and returns the content of the named cache file. // Any returned error will be treated as equivalent to the file not existing. // There can be arbitrarily many cache files, such as: // serverName/lookup/pkg@version // serverName/tile/8/1/x123/456 ReadCache(file string) ([]byte, error) // WriteCache writes the named cache file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 17:50:49 UTC 2024 - 19.1K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/sumdb.go
return err } if _, err := f.Write(new); err != nil { return err } return f.Close() } // ReadCache reads cached lookups or tiles from // GOPATH/pkg/mod/cache/download/sumdb, // which will be deleted by "go clean -modcache". func (*dbClient) ReadCache(file string) ([]byte, error) { targ := filepath.Join(cfg.GOMODCACHE, "cache/download/sumdb", file) data, err := lockedfile.Read(targ)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 20 15:02:47 UTC 2023 - 9.1K bytes - Viewed (0) -
src/internal/fuzz/fuzz.go
return time.Since(c.startTime).Round(1 * time.Second) } // readCache creates a combined corpus from seed values and values in the cache // (in GOCACHE/fuzz). // // TODO(fuzzing): need a mechanism that can remove values that // aren't useful anymore, for example, because they have the wrong type. func (c *coordinator) readCache() error { if _, err := c.addCorpusEntries(false, c.opts.Seed...); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 34.1K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/authoring-builds/best-practices/organizing_gradle_projects.adoc
For example you may want to pass in a specific property value to control runtime behavior just for this one invocation of the build. Properties in a build script can easily become a maintenance headache and convolute the build script logic. The `gradle.properties` helps with keeping properties separate from the build script and should be explored as viable option.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 08:16:36 UTC 2024 - 13.1K bytes - Viewed (0)