- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for onValidate (0.06 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
.build() val invalidate = client.newCall(request).execute() assertThat(invalidate.body.string()).isEqualTo("B") assertThat(get(url).body.string()).isEqualTo("C") } @Test fun postInvalidatesCacheWithUncacheableResponse() { // 1. Seed the cache. // 2. Invalidate it with an uncacheable response. // 3. Expect a cache miss.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 121K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
val requestB = server.takeRequest() assertThat(requestB.exchangeIndex).isEqualTo(1) } /** * The RFC is unclear in this regard as it only specifies that this should invalidate the cache * entry (if any). */ @Test fun bodyPermittedOnDelete() { server.enqueue(MockResponse()) val response = getResponse( Request .Builder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/LocalCache.java
localCache.put(key, value); } @Override public void putAll(Map<? extends K, ? extends V> m) { localCache.putAll(m); } @Override public void invalidate(Object key) { checkNotNull(key); localCache.remove(key); } @Override public void invalidateAll(Iterable<?> keys) { localCache.invalidateAll(keys); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 143.5K bytes - Click Count (0) -
guava/src/com/google/common/cache/LocalCache.java
localCache.put(key, value); } @Override public void putAll(Map<? extends K, ? extends V> m) { localCache.putAll(m); } @Override public void invalidate(Object key) { checkNotNull(key); localCache.remove(key); } @Override public void invalidateAll(Iterable<?> keys) { localCache.invalidateAll(keys); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 148.9K bytes - Click Count (0)