Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 321 for cache1 (0.04 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        Object key = new Object();
        Object value = new Object();
        LoadingCache<Object, Object> cache =
            builder.build(CacheLoader.from(Suppliers.ofInstance(value)));
        assertSame(value, cache.getUnchecked(key));
        assertEquals(0, cache.size());
        assertFalse(cache.asMap().containsKey(key));
      }
    
      public void testCacheBuilderFrom_string() {
        CacheBuilder<?, ?> fromString =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/CacheResponse.kt

     */
    package okhttp3.recipes.kt
    
    import java.io.File
    import java.io.IOException
    import okhttp3.Cache
    import okhttp3.OkHttpClient
    import okhttp3.Request
    
    class CacheResponse(
      cacheDirectory: File,
    ) {
      private val client: OkHttpClient =
        OkHttpClient
          .Builder()
          .cache(
            Cache(
              directory = cacheDirectory,
              // 1 MiB.
              maxSize = 10L * 1024L * 1024L,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/crawler/util/FieldConfigs.java

                values = StreamUtil.split(value, Pattern.quote("|")).get(stream -> stream.map(String::trim).toArray(n -> new String[n]));
            }
    
            /**
             * Checks if the cache option is enabled in the configuration.
             * Returns true if "cache" is present in the values or if there's a single "true" value
             * for backward compatibility.
             *
             * @return true if caching is enabled, false otherwise
             */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt

          assertThat(response!!.networkResponse).isNull()
        }
    
      /** Asserts that the current response didn't use the cache.  */
      fun assertNoCacheResponse() =
        apply {
          assertThat(response!!.cacheResponse).isNull()
        }
    
      /**
       * Asserts that the current response used the cache and returns the cache response.
       */
      fun cacheResponse(): RecordedResponse {
        val cacheResponse = response!!.cacheResponse!!
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

    import com.fasterxml.jackson.core.JsonProcessingException;
    import com.fasterxml.jackson.databind.ObjectMapper;
    import com.google.common.base.CaseFormat;
    import com.google.common.cache.CacheBuilder;
    import com.google.common.cache.CacheLoader;
    import com.google.common.cache.LoadingCache;
    
    import jakarta.annotation.PostConstruct;
    
    /**
     * Helper class for managing search logs.
     */
    public class SearchLogHelper {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/PopularWordHelperTest.java

        }
    
        public void test_clearCache() {
            // Test that clearCache doesn't throw exception
            popularWordHelper.clearCache();
    
            // Verify cache is cleared (we can't directly test this without accessing the cache)
            // But we can test that it doesn't throw exceptions
            assertTrue(true);
        }
    
        public void test_init_configuration() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11K bytes
    - Viewed (0)
  7. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

          System.out.println("Usage: Crawler <cache dir> <root>");
          return;
        }
    
        int threadCount = 20;
        int queueLimit = 1000;
        int hostLimit = 25;
        long cacheByteCount = 1024L * 1024L * 100L;
    
        Cache cache = new Cache(new File(args[0]), cacheByteCount);
        OkHttpClient client = new OkHttpClient.Builder()
            .cache(cache)
            .callTimeout(5, TimeUnit.SECONDS)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jul 23 00:58:06 UTC 2025
    - 5K bytes
    - Viewed (0)
  8. android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt

    import org.junit.Test
    
    abstract class BaseOkHttpClientUnitTest {
      private lateinit var client: OkHttpClient
    
      @Before
      fun setUp() {
        client =
          OkHttpClient
            .Builder()
            .cache(Cache(FakeFileSystem(), "/cache".toPath(), 10_000_000))
            .build()
      }
    
      @Test
      fun testRequestExternal() {
        assumeNetwork()
    
        val request = Request("https://www.google.com/robots.txt".toHttpUrl())
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 22 20:03:31 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

    import org.lastaflute.web.util.LaResponseUtil;
    import org.lastaflute.web.util.LaServletContextUtil;
    import org.opensearch.common.joda.Joda;
    
    import com.google.common.cache.CacheBuilder;
    import com.google.common.cache.CacheLoader;
    import com.google.common.cache.LoadingCache;
    
    import jakarta.servlet.http.HttpServletRequest;
    
    /**
     * Utility class providing static functions for Fess JSP/JSTL expressions and tag libraries.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  10. src/main/webapp/css/admin/html5shiv.min.js

    g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,...
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Dec 31 23:16:54 UTC 2017
    - 2.7K bytes
    - Viewed (0)
Back to top