- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for matchesFile (0.12 sec)
-
platforms/core-runtime/files/src/test/groovy/org/gradle/api/internal/file/pattern/PatternMatcherFactoryTest.java
assertThat(matcher, matchesFile("a", "b", "c")); assertThat(matcher, not(matchesFile("a"))); assertThat(matcher, not(matchesFile("a", "c"))); assertThat(matcher, not(matchesFile("c", "b"))); matcher = PatternMatcherFactory.getPatternMatcher(true, true, "a\\b\\"); assertThat(matcher, matchesFile("a", "b")); assertThat(matcher, matchesFile("a", "b", "c"));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 19.7K bytes - Viewed (0) -
internal/config/cache/cache.go
} var configLock sync.RWMutex // Enabled - indicates if cache is enabled or not func (c *Config) Enabled() bool { return c.Enable && c.Endpoint != "" } // MatchesSize verifies if input 'size' falls under cacheable threshold func (c Config) MatchesSize(size int64) bool { configLock.RLock() defer configLock.RUnlock() return c.Enable && c.BlockSize > 0 && size <= c.BlockSize } // Update updates new cache frequency
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.6K bytes - Viewed (0) -
cmd/object-handlers.go
if opts.PartNumber > 0 && len(objInfo.Parts) > 0 { setPartsCountHeaders(w, objInfo) } setHeadGetRespHeaders(w, r.Form) var buf *bytebufferpool.ByteBuffer if update && globalCacheConfig.MatchesSize(objInfo.Size) { buf = bytebufferpool.Get() defer bytebufferpool.Put(buf) } var iw io.Writer iw = w if buf != nil { iw = io.MultiWriter(w, buf) } statusCodeWritten := false
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 14 13:28:35 UTC 2024 - 124.2K bytes - Viewed (0)