Lines Matching defs:cache
37 * resolving from either cache or network on a worker thread, and then delivering
55 * <li>containsKey(cacheKey) indicates that there is a request in flight for the given cache
57 * <li>get(cacheKey) returns waiting requests for the given cache key. The in flight request
71 /** The cache triage queue. */
94 /** The cache dispatcher. */
103 * @param cache A Cache to use for persisting responses to disk
108 public RequestQueue(Cache cache, Network network, int threadPoolSize,
110 mCache = cache;
119 * @param cache A Cache to use for persisting responses to disk
123 public RequestQueue(Cache cache, Network network, int threadPoolSize) {
124 this(cache, network, threadPoolSize,
131 * @param cache A Cache to use for persisting responses to disk
134 public RequestQueue(Cache cache, Network network) {
135 this(cache, network, DEFAULT_NETWORK_THREAD_POOL_SIZE);
143 // Create the cache dispatcher and start it.
157 * Stops the cache and network dispatchers.
238 // If the request is uncacheable, skip the cache queue and go straight to the network.
244 // Insert request into stage if there's already a request with the same cache key in flight.
296 // that's not a problem as the cache has been primed by 'request'.