- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for cachedVals (0.11 sec)
-
internal/bucket/replication/filter.go
func (f *Filter) TestTags(userTags string) bool { if f.cachedTags == nil { cached := make(map[string]string) for _, t := range append(f.And.Tags, f.Tag) { if !t.IsEmpty() { cached[t.Key] = t.Value } } f.cachedTags = cached } // This filter does not have any tags, always return true if len(f.cachedTags) == 0 { return true }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Sep 28 18:25:46 UTC 2022 - 3.5K bytes - Viewed (0) -
internal/bucket/lifecycle/filter.go
func (f Filter) TestTags(userTags string) bool { if f.cachedTags == nil { cache := make(map[string]string) for _, t := range append(f.And.Tags, f.Tag) { if !t.IsEmpty() { cache[t.Key] = t.Value } } f.cachedTags = cache } // This filter does not have any tags, always return true if len(f.cachedTags) == 0 { return true }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Feb 27 00:01:20 UTC 2024 - 6.2K bytes - Viewed (0) -
okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt
call.execute().use { response -> assertThat(response.code).isEqualTo(200) assertThat(response.cacheResponse).isNull() } val cachedCall = client.newCall(request) cachedCall.execute().use { response -> assertThat(response.code).isEqualTo(200) assertThat(response.cacheResponse).isNotNull() } } private fun assumeNetwork() { try {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 2.5K bytes - Viewed (0) -
pkg/kubelet/container/cache.go
// Set the value in the cache only if it's not present already // or the timestamp in the cache is older than the current update timestamp if cachedVal, ok := c.pods[id]; ok && cachedVal.modified.After(timestamp) { return false } } c.pods[id] = &data{status: status, err: err, modified: timestamp} c.notify(id, timestamp) return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 17 07:37:01 UTC 2023 - 6.6K bytes - Viewed (0)