接口的使用
com.android.volley.Cache
使用Cache的程序包
-
com.android.volley中Cache的使用
返回Cache的com.android.volley中的方法参数类型为Cache的com.android.volley中的构造器限定符构造器说明CacheDispatcher(BlockingQueue<Request<?>> cacheQueue, BlockingQueue<Request<?>> networkQueue, Cache cache, ResponseDelivery delivery) Creates a new cache triage dispatcher thread.NetworkDispatcher(BlockingQueue<Request<?>> queue, Network network, Cache cache, ResponseDelivery delivery) Creates a new network dispatcher thread.RequestQueue(Cache cache, Network network) Creates the worker pool.RequestQueue(Cache cache, Network network, int threadPoolSize) Creates the worker pool.RequestQueue(Cache cache, Network network, int threadPoolSize, ResponseDelivery delivery) Creates the worker pool. -
com.android.volley.toolbox中Cache的使用
修饰符和类型类说明classCache implementation that caches files directly onto the hard disk in the specified directory.classA cache that doesn't.参数类型为Cache的com.android.volley.toolbox中的构造器限定符构造器说明ClearCacheRequest(Cache cache, Runnable callback) Creates a synthetic request for clearing the cache.